SoftadminSnippet.Page_ReplaceUrl

Type: Stored procedure

Replaces the URL. Behaves like a redirect except that the previous URL is not saved in the browser's session history and e.g. can not be reached with the back button.

Example

DECLARE @Path nvarchar(MAX) = SoftadminSnippet.PathPattern('mysite', 'LogIn');

EXEC SoftadminSnippet.Page_ReplaceUrl
	@Url = @Path;

See also

Parameters

@IsRelativeToWebSiteUrl optional bit
Whether relative URLs should be considered relative to the "Web site URL" setting. Defaults to 1.
@Url mandatory nvarchar
URL to replace current location with.