Ticket #262 (accepted fixme)

Opened 2 years ago

Last modified 11 months ago

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:1 Changed 2 years ago by ct

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.

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.

comment:3 Changed 11 months ago by ichthyo

so basically this seems settled. During the last days, we checked and fixed links in the toplevel, but we should still use a linkchecker or something similar for the pages more down into the hierarchy

Note: See TracTickets for help on using tickets.