#using nextlink regardless of either of
1 messages · Page 1 of 1 (latest)
hi
say the url is mysite.foo/bar
i change it to anything
mysite.foo/bar1234567890
or just 1234567890
any text in the url
then follow a link using next/link
the url stays as what was entered
You mean by entering an URL that does not exist but not submitting it?
- mysite.foo/bar
- change to 1234567890 (don't submit)
- click link for mysite.foo/notbar
- page loads for mysite.foo/notbar with 1234567890 in the address bar
In my browser I don't have that behavior. I'd guess it's the browser not removing the custom text.
In your address bar after the navigation has finished just hit Escape to see what happens
i'm using firefox, but it could also be another symptom of something else i've done
Try another browser
brb then
ok, back
i had to install chrome
so chrome doesn't have the issue, firefox does and you are correct, escape clears the text
it's just open to potential confusion for the end user
could you perhaps check firefox on your system for me to see if it's just on my OS?
Can confirm. That's trashy Firefox behavior.
Brave and Safari update the URL.
Guess FF does it to not drop what you typed and intended to browse to
that's pretty bad behaviour for a SPA
so much so if this were enterprise i'd probably drop next/link and straight up use <a>
That's not a workaround I'd ever use.
interestingly there's an enterprise nextjs site i've found that doesn't have this problem
so either they found a fix, or they're not using next/link
i'm assuming it's nextjs from the dom #__next
do you know of any redis packages that work well with nextjs?