#using nextlink regardless of either of

1 messages · Page 1 of 1 (latest)

short sinew
#

What do you mean with "manually change"?

limpid nimbus
#

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

short sinew
#

You mean by entering an URL that does not exist but not submitting it?

limpid nimbus
#
  1. mysite.foo/bar
  2. change to 1234567890 (don't submit)
  3. click link for mysite.foo/notbar
  4. page loads for mysite.foo/notbar with 1234567890 in the address bar
short sinew
#

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

limpid nimbus
#

i'm using firefox, but it could also be another symptom of something else i've done

short sinew
#

Try another browser

limpid nimbus
#

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?

short sinew
#

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

limpid nimbus
#

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>

short sinew
#

That's not a workaround I'd ever use.

limpid nimbus
#

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

limpid nimbus
#

do you know of any redis packages that work well with nextjs?