List for cgit developers and users
 help / color / mirror / Atom feed
From: nl at nachtgeist.net (Daniel Reichelt)
Subject: Relative URL for Atom feed announcement
Date: Sat, 30 Nov 2013 06:56:37 +0100	[thread overview]
Message-ID: <52997E15.3020602@nachtgeist.net> (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>


             reply	other threads:[~2013-11-30  5:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30  5:56 nl [this message]
2014-01-08 15:36 ` Jason
2014-01-08 16:15   ` nl
2014-01-08 16:31     ` Jason
2014-01-08 16:33   ` nl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52997E15.3020602@nachtgeist.net \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).