Routing issue (I am learing nextjs)
Answered
Giant panda posted this in #help-forum
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 ?Answered by B33fb0n3
that sounds more like a browser issue. I guess you manually entered the path
Like that it could be an illusion that you are going to
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 thread18 Replies
that sounds more like a browser issue. I guess you manually entered the path
Like that it could be an illusion that you are going to
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 threadAnswer
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
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 letterGiant pandaOP
so basically NextJS saves browswer as a cache ?
yea, the save of the path is saved inside your browser cache
no, the browser does that
Giant pandaOP
Ah that was the issue , i didn't knew it
Though reactjs does't auto complete the link
exactly
it's independed from any framework. It's stuff that your browser does
Giant pandaOP
Thanks , gotta learning 😄
damn , i can not find "mark solution"
this is the solution right? https://nextjs-forum.com/post/1298167213559250954#message-1298168284859863050 (<---- click this)
Giant pandaOP
might be , it just gave me a glimp of hint
which one is the most accurate message from me for you?
Giant pandaOP
Oh thats how tick works , good