Skip to content

pbStateAsUrlHash - cLocalWebAppHost

Determines if the state hash will be added to the URL as URL hash

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbStateAsUrlHash
Access Type Syntax
Read Access: Get pbStateAsUrlHash to BooleanVariable
Write Access: Set pbStateAsUrlHash to BooleanVariable/Value

Description

Determines if the state hash will be added to the URL as URL hash.

The URL hash is the part of the URL following the # symbol and is treated specially by browsers. Changing this part of the URL does not cause a page reload, but triggers a JavaScript event. This part of the URL is also not sent to the server by default.

If this property is True, the DataFlex state hash will be added as hash to the URL and the framework will respond to the location hash change event and restore the hash.

Set this property to False when customizing the URL format. It is expected to override StateHashToUrl in that scenario.