Skip to main content

Ignore Wiew Url (ignore-view-url)

Description​

ViewUrl is a method that we call, in website editor mode, when the template has elements with href="some_url" present. This will prevent the user from navigation away in website editor. We change the href value to from href="some_url" to href="javascript:ViewUrl('some_url')".

To prevent this from happening one have to add the attribute ignore-view-url to the element.

<a href="https://google.com" ignore-view-url>Search</a>