"Go back to page" button edge case

  • ssssadsadasd

    29 days ago

    I want to click a left-arrow icon and go to the previous page in the app. To do so I use javascript:history.back(), however it returns blank page sometimes (e.g. when the user goes directly to that link without previous history in the app).

    In that case I want to redirect to another base page in the app. how can I do so? switch does not allow me to get a result from javascript:history.back()

    thanks

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.