Set url hash/anchor

  • ssssadsadasd

    10 days ago

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

    10 days ago

    Set/unset url hash/anchor
  • /attachments/1325111142158176334/1325123362774712351/image.png

    ssssadsadasd

    10 days 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
    image.png
  • /attachments/1325111142158176334/1325124342245359678/image.png

    ssssadsadasd

    10 days ago

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

    10 days ago

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

    10 days 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

    10 days 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
  • Andreas Møller

    10 days ago

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

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.