%SCRIPTURL{"script"}%
http://twiki.fotogrametria.agh.edu.pl/bin/script
%SCRIPTURL{"viewauth"}%/%WEB%/%TOPIC%
which expands to http://twiki.fotogrametria.agh.edu.pl/bin/viewauth/TWiki/VarSCRIPTURL2
%SCRIPTURLPATH{"script"}%
instead, as it works with URL rewriting much better