Relative URL for Atom feed announcement

Daniel Reichelt nl at nachtgeist.net
Sat Nov 30 06:56:37 CET 2013


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>


More information about the CGit mailing list