Set two path parameters at once: two slashes at the end

  • ssssadsadasd-1323217187212754965

    ssssadsadasd

    3 months ago

    I have three path parameters: tab1, tab2, tab3. So my url is sth like: https://start.toddle.site/tab1/tab2/tab3

    When clicking a button I want to go to url: https://start.toddle.site/tab1/ so remove the last two path parameters. To do so I create an event on a button and then do: set tab2, set tab3 -> to empty. However, the resulting url is https://start.toddle.site/tab1// so two slashes at the end. I want only one. how can i achieve this? thanks (see [this](https://toddle.dev/projects/turquoise_o_en_lars_permanent_chicken/branches/start/components/test?leftpanel=design&rightpanel=events&canvas-width=867&canvas-height=800) as an example)
    βœ…1
  • basfenix-1323272847715733515

    Bas Fenix

    3 months ago

    cant you make it an old school ahref and use relative links?
  • ssssadsadasd-1323274263230283908

    ssssadsadasd

    3 months ago

    @Bas Fenix using the "set: path parameter" action does not refresh the page while the "go to url" action does
  • gazinhio-1323274912399364158

    gazinhio

    3 months ago

    Try setting the extra path params to null rather than to empty strings.
  • ssssadsadasd-1323276179867701348

    ssssadsadasd

    3 months ago

    @ that sets the path parameters as notifications/null/null
  • gazinhio-1323276463524282400

    gazinhio

    3 months ago

    Are you using the Null static value rather than the string of "null"
  • basfenix-1323276585079537684

    Bas Fenix

    3 months ago

    i meant like this: <a href="../../">Back to Tab1</a>
  • ssssadsadasd-1323278935693328425

    ssssadsadasd

    3 months ago

    @ yes this works thanks πŸ™‚
    1323278935399731220-image.png
    πŸ‘1
  • ssssadsadasd-1323279221229092874

    ssssadsadasd

    3 months ago

    @Bas Fenix I am not sure if that works honestly (not sure whether the page is refreshed or not) but I would like to keep as much toddle native as i dont know much about coding (I use no-code). thanks anyway
  • basfenix-1323279522438844448

    Bas Fenix

    3 months ago

    yes its just a link the user would click, <a> html the ../.../ just says go 2 layers up from current url, and the page would reload
  • happy u got it working anyways

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.