List for cgit developers and users
 help / color / mirror / Atom feed
* Relative URL for Atom feed announcement
@ 2013-11-30  5:56 nl
  2014-01-08 15:36 ` Jason
  0 siblings, 1 reply; 5+ messages in thread
From: nl @ 2013-11-30  5:56 UTC (permalink / raw)


Hi folks,


rationale for this patch:

* Debian wheezy
* VirtualHost container for git repositories (running under a different
user than www-data using apache2-mpm-itk on port 446)
* include said vhost via reverse proxy in the main https site


Calling the main site, the Atom feed URL gets created as

-------8<---------
<link rel='alternate' title='Atom feed'
href='http://localhost:446/repositories/cgit/[...]'
type='application/atom+xml'/>
-------8<---------

which is obviously useless. As far as I can tell every other URL is
created as relative href, so the attached patch changes the feed URL to
a relative one as well, namely

-------8<---------
<link rel='alternate' title='Atom feed' href='/repositories/cgit/[...]'
type='application/atom+xml'/>
-------8<---------


Thanks!


Cheers,

Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-use-relative-URL-for-link-rel-alternate-title-Atom-f.patch
Type: text/x-patch
Size: 787 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20131130/6e6f2f59/attachment.bin>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-08 16:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-30  5:56 Relative URL for Atom feed announcement nl
2014-01-08 15:36 ` Jason
2014-01-08 16:15   ` nl
2014-01-08 16:31     ` Jason
2014-01-08 16:33   ` nl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).