TryRedirectUsingURLHistory (open)
Redirect if a history URL is available. This function is intended for custom 404 pages
Syntax
LOADLIB "mod::publisher/lib/urlhistory.whlib";
MACRO TryRedirectUsingURLHistory(RECORD options)Parameters
RECORD optionsOptions
STRING appendText to append after redirected URL if a match is found
STRING ARRAY lookupurlsURLs to try to look up. Defaults to GetRequestURL and GetClientRequestURL
FUNCTION PTR oninactivetargetInvoked if the target of the urlhistory is not active (eg in recyclebon or /webhare-private/). Receives the ID and should return the URL if found.