nextjs-toploader icon indicating copy to clipboard operation
nextjs-toploader copied to clipboard

Progress Stuck if I Click Link with the same route

Open nabilfatih opened this issue 2 years ago • 5 comments

The progress works well, but there is problem:

The progress bar will get stuck if I click link with the same route, for example:

If I'm in /contact , and I click again the Link with href="/contact", the progress bar showing again but get stuck

nabilfatih avatar Sep 25 '23 18:09 nabilfatih

have you used localization ?

razhir avatar Oct 20 '23 00:10 razhir

Hey buddy,

is there any update on this?

nitinsinghnaruka avatar Oct 25 '23 16:10 nitinsinghnaruka

This sounds like something's up with your code. Are you maybe redirecting to /contact/ -> /contact? The TopLoader only shows if the new url is not the same.

tomcru avatar Nov 10 '23 23:11 tomcru

the problem (for us at least) is because we're using a middleware that is prepending the localization. /contact => /en/contact.

Is there any way we can stop NProgress on those redirections?

ShooTeX avatar Feb 26 '24 14:02 ShooTeX