Link destinations in page templates get prepended with a slash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
High
|
Kit Blake |
Bug Description
In the Silva interface, there are some standard access keys that appear in every
screen, such as alt-t (top of page) and alt-b (bottom). These keys are defined
in the macro_index page template:
<a accesskey="t"
href="#top"
title="jump to top: alt-t">....
Using this issue page as an example, when the above gets rendered in the
browser, you would expect the link to be:
http://
But somehow a slash gets prepended, resulting in this:
http://
which works (because everything's an object) but it causes a reload. You can get
around this by tal:attributing the href, using absolute_url. But that's
expensive. Anybody know where that slash is coming from?
[1234]
Changed in silva: | |
assignee: | nobody → aaltepet |
Changed in silva: | |
importance: | Medium → High |
Changed in silva: | |
status: | Fix Committed → Fix Released |
as far as I know the slash comes from Zope inserting a base tag,
if the is none in the template. The default base tag is the path
of the "current request", followed by a slash if it does not end in a slash aleady
(see ZPublisher.setBase somewhere ...)
The workaround is to add an own <base> tag to the macro_index. instructions for my
I remeber vaguely I did something in the install-
SilvaLocalContent (for some completely different reason ...)