Question
Is it possible to use an anchor in a redirect inside a self-developed twiki script?
Example code:
$url = &TWiki::getViewUrl( $webName, $topicName );
$url .= "#PageBottom";
TWiki::redirect( $query, $url );
=> But the redirect will always only open the referenced page but not jump to the correct anchor.
Or ist there a different command in the Twiki API to achieve this?
Environment
--
TWikiGuest - 13 Mar 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Yes. Use getScriptUrl. But you would be better advised to write a plugin with a REST handler as described in EmptyPlugin.pm, rather than trying write a top level script.
--
CrawfordCurrie - 14 Mar 2007
Thanks a lot!!
That was all the information I needed.
--
TWikiGuest - 15 Mar 2007