%SCRIPTURL{"script"}%
https://twiki.cargooffice.com/bin/script
%SCRIPTURL{"viewauth"}%/%WEB%/%TOPIC% which expands to https://twiki.cargooffice.com/bin/viewauth/TWiki/VarSCRIPTURL2
[[%SCRIPTURL{view}%/%WEB%/MyQuery?food=sushi][Sushi]]
%SCRIPTURLPATH{"script"}% instead, as it works with URL rewriting much better