You are here: Foswiki>Tasks Web>Item3138 (16 Mar 2011, GeorgeClark)Edit Attach

In TWiki:Plugins.RedirectPluginDev a user was surprised that the following did not work:

%REDIRECT{"%META{"parent"}%"}%

The expansion of the meta appeared to work, but the redirect failed.

The problem is that the %META{"parent"}% generates a result of the form [[...][...]], which, of course, is not recognized by =%REDIRECT%. If you read the documentation of META, you will find that the parent tag usually generates a cookie trail. Nevertheless, I agree that it is quite reasonable to expect that one gets a normal topic returned from the META tag, at least in the simple form.

I believe that when the option dontrecurse is on (in which case we will always have a single result), the result should not have the anchor brackets, so that it could be used in further TML.


This can be resolved by using format="$web.$topic" The default format includes the brackets. Closing as No Action Required.

-- GeorgeClark - 16 Mar 2011

ItemTemplate edit

Summary META{"parent"} should return useable result in simple form
ReportedBy TWiki:Main.ThomasWeigert
Codebase
SVN Range TWiki-4.1, Thu, 09 Nov 2006, build 11947
AppliesTo Engine
Component META
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 16 Mar 2011, 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