This question about Developing extensions (plugins skins etc.): Asked

$Foswiki::cfg{ScriptUrlPaths}{view}

Dear reader,

In Foswiki 2.1.6

In the config file:
-- snip
$Foswiki::cfg{ScriptUrlPath} = '/devwiki/bin';
$Foswiki::cfg{ScriptUrlPaths}{view} = '/devwiki';
-- snip

In a plugin the statement:
   my $try = $Foswiki::cfg{ScriptUrlPaths}{view};
leaves $try = undef

Checking in the debugger $Foswiki::cfg{ScriptUlsPaths} exists and is a hash.
But {view} is not shown???

print STDERR "ScriptUrlPaths: ", dump($Foswiki::cfg{ScriptUrlPaths}), "\n"; shows:
ScriptUrlPaths: {}

It seems that {view} gets lost when loading the config file???

I tried using Foswiki::Func::getScriptUrlPath( undef, undef,'view' ) as an alternative. But that returns: /devwiki/bin/view
That is correct, but no indication of the use of the shorter URL

Any suggestions where/how {view} gets lost? Happy to dig from there.

Any idea why this could be?

-- BramVanOosterhout - 07 Aug 2022

 

QuestionForm edit

Subject Developing extensions (plugins skins etc.)
Extension
Version Foswiki 2.1.6
Status Asked
Related Topics
Topic revision: r1 - 07 Aug 2022, BramVanOosterhout
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