Item1741: %TOPICURL% does not work correctly in %INCLUDE%

Priority: Normal
Current State: Closed
Released In: 1.0.7
Target Release: patch
Applies To: Engine
Reported By: AndrewJones
Waiting For:
Last Change By: FranzJosefGigler
When used in an include, %TOPICURL% creates a URL using the base topic but the included web (if I got that the right way round).

See the example below which is including part of a topic from the Sandbox web. It has the topic part of the URL correct, but not the Web.


-- AndrewJones - 16 Jun 2009

Looks OK to me. What were you expecting to see?

-- CrawfordCurrie - 20 Sep 2009

Notice how it has the web Sandbox, which is where we are including from, and the topic Item1741, which is where we have included.

If you click on the link it has created, you will get a "Topic does not exist".

I would have expected it to be

-- AndrewJones - 20 Sep 2009

OK, I understand, thanks.

%INCLUDE{"Sandbox.TOPICURLIncludeTest" section="test" }% where that topic contains %STARTSECTION{"test"}% %<nop>TOPICURL% is %TOPICURL% %ENDSECTION{"test"}% shows

DefaultPreferences defines
By the definition in VarTOPICURL this should of course be:
(as you can see the local definition above has fixed it).

Confirmed. This def is only used in one place that I can find, so a fix shouldn't cause too many issues.

-- CrawfordCurrie - 20 Sep 2009

Great. Thanks.

-- AndrewJones - 20 Sep 2009

ItemTemplate edit

Summary %TOPICURL% does not work correctly in %INCLUDE%
ReportedBy AndrewJones
Codebase 1.0.6, 1.0.5
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Priority Normal
CurrentState Closed
Checkins distro:72bedac1bc20 distro:e3a5f93f2bf2
TargetRelease patch
ReleasedIn 1.0.7
Topic revision: r11 - 21 Sep 2009, FranzJosefGigler
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