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 options

Options

STRING append

Text to append after redirected URL if a match is found

STRING ARRAY lookupurls

URLs to try to look up. Defaults to GetRequestURL and GetClientRequestURL

FUNCTION PTR oninactivetarget

Invoked 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.