Script: Class dw.web.URLRedirect

Class URLRedirect

Represents a URLRedirect in Commerce Cloud Digital.

Properties

location : String Read Only

The URL which was calculated to be the redirect URL. The Location parameter can be directly used as value for an redirect location.

status : Number Read Only

The corresponding status code for the redirect location.

Constructor Summary

This class does not have a constructor, so you cannot create it directly.

Method Summary

getLocation() : String

Returns the URL which was calculated to be the redirect URL.

getStatus() : Number

Returns the corresponding status code for the redirect location.

Methods inherited from class Object

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Method Detail

getLocation

getLocation() : String

Returns the URL which was calculated to be the redirect URL. The Location parameter can be directly used as value for an redirect location.

Returns:

redirect location

getStatus

getStatus() : Number

Returns the corresponding status code for the redirect location.

Returns:

status code