%SCRIPTURL{"script"}%
https://shift.snolab.ca/bin/script
%SCRIPTURL{"viewauth"}%/%WEB%/%TOPIC% which expands to https://shift.snolab.ca/bin/viewauth/TWiki/VarSCRIPTURL2
%SCRIPTURLPATH{"script"}% instead, as it works with URL rewriting much better