| Parameter | Description   | Default | 
|---|---|---|
| Any other parameters to the macro will be added as parameters to the URL | ||
| "$script" | Name of script | |
| topic | Topic (or Web.Topic) to add to URL | |
| web | Web name to add to URL | |
%SCRIPTURL{"view" topic="Cartoons.EvilMonkey"}% will expand to https://ultra.guide/bin/view/Cartoons/EvilMonkey
%SCRIPTURL{"view" web="Cartoons"}% will expand to https://ultra.guide/bin/view/Cartoons?web=Cartoons
%SCRIPTURL{"view" topic="Cartoons.EvilMonkey" rev="1"}% will expand to https://ultra.guide/bin/view/Cartoons/EvilMonkey?rev=1
%SCRIPTURL{"edit" web="Cartoons" topic="EvilMonkey" t="%GMTIME{"$epoch"}%"}% expands to https://ultra.guide/bin/edit/Cartoons/EvilMonkey?t=1761614668
%SCRIPTURL% expands to https://ultra.guide/bin
%SCRIPTURL{script}% expands to https://ultra.guide/bin/script
 In most cases you should use SCRIPTURLPATH instead, as it works much better with URL rewriting
 In most cases you should use SCRIPTURLPATH instead, as it works much better with URL rewriting
 The
 The edit script should always be used in conjunction a t="%GMTIME{"$epoch"}%" parameter to ensure pages about to be edited are not cached in the browser
 The 'old' way of building URLs using
 The 'old' way of building URLs using SCRIPTURL involved concatenating the web and topic names to the SCRIPTURL e.g. %SCRIPTURL{"script"}%/Cartoons/EvilMonkey. This practice is strongly discouraged, as it does not correctly handle encoding of the parts of the URL. At the first opportunity you should replace all such URLs with the equivalent %SCRIPTURL%{"script" topic="Cartoons.EvilMonkey"}%, which will handle URL encoding for you.
 The SCRIPTURL macro does NOT support building
 The SCRIPTURL macro does NOT support building jsonrpc or rest requests with parameters. They should still use the "contatenation" method.  This is expected to be fixed in Foswiki 2.2.
 Automation
 Automation
 Main
 Main
 System
 System
 Testing
 Testing