Next.js Discord

Discord Forum

Routing issue (I am learing nextjs)

Answered
Giant panda posted this in #help-forum
Open in Discord
Avatar
Giant pandaOP
I had folder name called "Blog" that started from capital B , it did work but I realized that every folder should have lower case. So , i have edited it to lower case "b" and when i go routing /blog , it changed to /Blog automatically and not routing blog folder , what did i mistake ?
Image
Answered by B33fb0n3
that sounds more like a browser issue. I guess you manually entered the path localhost:3000/Blog and like that the browser remembered it with a capital B. When you now enter it with a small B, the browser will suggest (and auto select) the url with the capital B, because it remembered it, that you entered it.

Like that it could be an illusion that you are going to blog but nextjs redirects you to Blog. So check that and update this thread
View full answer

18 Replies

Avatar
that sounds more like a browser issue. I guess you manually entered the path localhost:3000/Blog and like that the browser remembered it with a capital B. When you now enter it with a small B, the browser will suggest (and auto select) the url with the capital B, because it remembered it, that you entered it.

Like that it could be an illusion that you are going to blog but nextjs redirects you to Blog. So check that and update this thread
Answer
Avatar
Giant pandaOP
how am i suppose to check that ? I was using chrome brower
looks like i got my answer , i had to clear browser cache
Image
Avatar
enter the path without pressing enter. As you can see in my case: I entered a capital P and the link is pre selected. If I now press enter I won't get redirected to the capital letter
Image
Avatar
Giant pandaOP
so basically NextJS saves browswer as a cache ?
Avatar
yea, the save of the path is saved inside your browser cache
no, the browser does that
Avatar
Giant pandaOP
Ah that was the issue , i didn't knew it
Though reactjs does't auto complete the link
Avatar
exactly
it's independed from any framework. It's stuff that your browser does
Avatar
Giant pandaOP
Thanks , gotta learning 😄
damn , i can not find "mark solution"
Avatar
Avatar
Giant pandaOP
might be , it just gave me a glimp of hint
Avatar
which one is the most accurate message from me for you?
Avatar
Giant pandaOP
Oh thats how tick works , good