beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

SetLocationHash Op

SetLocationHash

sets window.location.hash to the specified value(s)


allows to manipulate window.location.hash to store data in the url without reloading the page.

given a hash in the first parameter, the op will simply replace the whole part behind the # in the url with the given hash.


Edit Documentation

Full Name
  • Ops.Website.SetLocationHash
Visibility
  • Core Op - Official cables op
Author


 

Example Patch LocationHash Example

how to use the browser location bar to navigate and create deeplinks

Open In Editor

Youtube Video Tutorial

INPUT PORTS


Hash (String)

new value for window.location.hash (without the #)

Update (Trigger)
Active (Number:boolean )

active/inactive

Silent (Number:boolean )

make event not trigger LocationHashRoute op

Allow Empty (Number:boolean )

allow for setting an empty hash, usually triggers a page reload


Usages of SetLocationHash

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


created opuser avatarstephan - 2021-03-30
added lib: navigo.jsuser avatarstephan - 2021-03-30
Ops.User.stephan.SetLocationHash renamed to Ops.Website.SetLocationHashuser avatarstephan - 2021-03-30