solid-router icon indicating copy to clipboard operation
solid-router copied to clipboard

useNavigate() replace the browser history

Open T3ch0o opened this issue 1 year ago • 2 comments

Describe the bug

Even inside navigation('url', { replace: false }) is by default the history is replaced and when clicking back the url doesn't change and after that goes to a random places. Migrated from ver. 9 to ver. 10 i didn't touch the logic at all. It worked as expected at ver. 9

Your Example Website or App

localhost

Steps to Reproduce the Bug or Issue

  1. import useNavigate
  2. navigate to any different route besides the current

Expected behavior

Expecting to go back on the previous route that i was in!

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

T3ch0o avatar Dec 20 '23 22:12 T3ch0o

I've tried to reproduce your issue, but couldn't succeed. Everything worked as expected for me.

Could something else be the cause of the problem? Could you please provide more information?

femincan avatar Dec 21 '23 15:12 femincan

Should this issue be closed since there hasn't been more information provided?

I haven't had this issue from version 0.9 -> 0.13. If there is no way to reproduce this from basic examples then I don't think its an issue in its current state.

I can confirm it works in version 0.13.0 at least.

pixelprogrammer avatar Mar 12 '24 16:03 pixelprogrammer