Set url hash/anchor

  • ssssadsadasd-1325111142158176334

    ssssadsadasd

    4 months ago

    how can i set/unset a url hash/anchor without refreshing the page?
  • ssssadsadasd-1325122022979932161

    ssssadsadasd

    4 months ago

    Set/unset url hash/anchor
  • ssssadsadasd-1325123362975908042

    ssssadsadasd

    4 months ago

    I manage to set a hash anchor by:
    1. set page param = param1#hash
    2. (for some weird reason) go to url = current url. when I use this the path param evaluates to param1, otherwise it evaluates to param1#hash

    but now the equally important issue is how to unset it. and the trick above does not seem to work
    1325123362774712351-image.png
  • ssssadsadasd-1325124342492827781

    ssssadsadasd

    4 months ago

    I try this to unset or change it but using&changingchanging the current url refreshes the page
    1325124342245359678-image.png
  • ssssadsadasd-1325149614420000839

    ssssadsadasd

    4 months ago

    @Andreas Møller any input on this? I also think this cannot be achieved rn in toddle, am I correct?
  • andreasmoller-1325150370586165308

    Andreas Møller

    4 months ago

    We don’t have support for setting hash parameters at the moment but that can be achieved with a link or goToUrl without causing a page load
  • ssssadsadasd-1325153238374154283

    ssssadsadasd

    4 months ago

    @Andreas Møller I am not sure I understand how we can achieve a "goToUrl without causing a page load" in [my example ](https://toddle.dev/projects/turquoise_o_en_lars_permanent_chicken/branches/start/components/test1?leftpanel=design&canvas-width=800&canvas-height=800&rightpanel=events)above I manage to set the hash but I do not know how to change/nullify it without page reload
  • andreasmoller-1325161960282525808

    Andreas Møller

    4 months ago

    If you are just setting it to #something” it should not reload (if I remember correctly)