You are here: Foswiki>Tasks Web>Item13255 (10 Feb 2015, GeorgeClark)Edit Attach

Item13255: Preview expands TOC relative to the "save" url

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiUIPreview
Branches: master
Reported By: GeorgeClark
Waiting For: GeorgeClark
Last Change By: GeorgeClark
A preferred fix would be to overide the view before template expansion, so that relative links are valid. However given that the preview is done using a POST to save, this probably isn't going to work. We'd probably need a different preview architecture.

disabling the %TOC macro so that it doesn't expand during preview is an alternative.

-- GeorgeClark - 09 Feb 2015

George, looking at your TOC patch in preview I see you are using foswikiBroadcastMessage. This class isn't usable for that kind of things. foswikiBroadcastMessage is reserved as a container for broadcast messayges displayed at the top of the viewport

Why disabling TOC? This is a regression compared to 1.1.9.

-- MichaelDaum - 09 Feb 2015

Changes to a partial revert of the 1.2 feature. TOC and/or any relative links should now be changed to simulated links. Only http* style links should be re-targeted. Closing

-- GeorgeClark - 10 Feb 2015
 
Topic revision: r4 - 10 Feb 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy