git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb sets incorrect <base> header

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Apr 29, 2009, 09:22 UTC
Message-ID
<gt9685$l9g$1@ger.gmane.org>
In-Reply-To
<877i15uf14.fsf@write-only.cryp.to>
On Tuesday 28 April 2009 14:41, Peter Simons wrote:
Show 7 quoted lines
> after a recent gitweb update to revision v1.6.3-rc3-12-gb79376c, the CGI now
> generates an incorrect <base> header. For example, the first "patch" on the
> page
> 
>   http://git.cryp.to/fastcgi/commitdiff/9ad9965b3fa293c458df14391f181f2f8f1197cd
> 
> erroneously refer to http://git.cryp.to/cgi-bin/gitweb.cgi#patch1, but that
Both in Konqueror and Opera the patch link on that page refers to 
http://git.cryp.to/fastcgi/patch/9ad9965b3fa293c458df14391f181f2f8f1197cd
which is quite correct.
> page doesn't exist. It appears that $base_url is not determined correctly.
> 
> Does anyone have a clue how that problem can be fixed?
OTOH by looking at the source I see
<base href="http://git.cryp.to/cgi-bin/gitweb.cgi" />

which doesn't seem correct at all. Do you have something in the gitweb config that may be hard-coding the base url?

-- 
Giuseppe "Oblomov" Bilotta
Previous: Peter SimonsNext: Jakub Narebski
Message 2 of 4 in “gitweb sets incorrect <base> header”
  1. Peter SimonsApr 28, 2009
  2. Giuseppe BilottaApr 29, 2009
  3. Jakub NarebskiApr 29, 2009
  4. Peter SimonsApr 30, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.