Ticket #262 (accepted fixme)
Internal links broken
| Reported by: | pseudoruprecht | Owned by: | bjmr |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Website | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | #53 |
Description
The internal links in the HTML generated from the asciidoc sources are broken.
E.g.
link:Lumiera/GuiBrainstorming/MenuAndShortcuts[]
becomes
<a href="Lumiera/GuiBrainstorming/MenuAndShortcuts">
That's wrong.
Links not beginning with "/" should be relative to the uWiki root (http://lumiera.org/ right now), not to the PWD
Change History
comment:2 Changed 18 months ago by bjmr
- Owner set to bjmr
- Status changed from new to accepted
- Type changed from todo to fixme
this has been mostly solved by an Asciidoc attribute feature whereby {l} curly bracket-lowercase L-curly bracket, is replaced either in asciidoc txt or the .conf file after the <xhtml> tag. {l} is replaced by http://staging.lumiera.org with NO trailing '/', this attribute can be changed with a single line edit in the layout1.conf file, so is easy to change for local testing or when the site domain is changed.
Example:
link:{l}/project/donate.html[]
is printed:
link:http://staging.lumiera.org/project/donate.html
Note that there is no trailing slash '/' so that if l=' ' nothing the links will work as root-relative.

would be nice not to include http://lumiera.org/, just an html absolute link will do:
http:/Lumiera/GuiBrainstorming/MenuAndShortcuts note the single / after http:
This should be fixable in the layout1.conf iirc.