Skip to main content

Add a Gate Bookmark to the URL When a Modal Opens and Remove It When It Closes

Modal gate bookmarks, URL hashes, deep links and page URL updates when modal gates open or close.

Formulayt can add a modal gate's bookmark hash to the page URL when the modal opens and remove it when the modal closes.

This setting is enabled by default for all accounts built since November 2025. Admins can change the setting at any time.

How it works

When this setting is enabled, opening a modal gate sets the current page URL’s hash to the gate’s bookmark, replacing any existing hash.

For example:

may become:

When the modal gate is closed, Formulayt removes the hash if it still matches that gate’s bookmark, preserving the page path and query string. Any hash that was present before the modal opened is not restored:

The page does not reload when the bookmark is added or removed.

This setting controls the URL bookmark only. It does not control whether a modal gate appears on page load. Configure the modal gate's display behavior separately using the instructions in How to make a modal form appear on page load.

Deep links

Updating the URL bookmark enables shareable deep links to modal gates. The bookmark identifies the gate that is open, allowing the URL to represent the current gate state.

This can be useful when sharing or linking directly to content presented through a modal gate.

Changing the setting

Admins can enable or disable this behavior in the account settings.

  1. Go to Setup > Settings > Forms.

  2. Toggle Update the page URL bookmark (hash) to “Yes” to enable or “No” to disable

  3. Click Update

When set to Yes, Formulayt updates the page URL with the modal gate's bookmark when the gate opens and removes it when the gate closes. This allows the modal gate state to be included in a shareable deep link.

When set to No, Formulayt leaves the page URL unchanged when modal gates open or close.

Did this answer your question?