Mercurial > hg
diff mercurial/hgweb/hgwebdir_mod.py @ 20253:43cfad930d38
hgweb: avoid invalid infinity scroll request when overwritten web.style
Infinity scroll is broken when you override the web.style in the following ways:
$ hg --config='web.style=gitweb' serve
$ open http://localhost:8080/shortlog?style=paper
ajaxScrollInit should use http://localhost:8080/shortlog/%next%?style=paper.
however, http://localhost:8080/shortlog/%next% is used actually.
It is missing style parameter.
This patch add style parameter to request url.
author | Takumi IINO <trot.thunder@gmail.com> |
---|---|
date | Wed, 08 Jan 2014 00:35:03 +0900 |
parents | 1dba26575dba |
children | 3d77e567de56 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Wed Jan 08 00:26:55 2014 +0900 +++ b/mercurial/hgweb/hgwebdir_mod.py Wed Jan 08 00:35:03 2014 +0900 @@ -448,7 +448,9 @@ "logourl": logourl, "logoimg": logoimg, "staticurl": staticurl, - "sessionvars": sessionvars}) + "sessionvars": sessionvars, + "style": style, + }) return tmpl def updatereqenv(self, env):