Routing doesn't works!
I have exactly made a lazy loading route called about and called that via link component! Don't know why but every time it changes it's path on the url bar but the content of that page is not displayed!
7 Replies
extended-salmon•2y ago

protestant-coralOP•2y ago
This is the problem! There is no error in console
Simply it doesn't work! Should I share my code?
extended-salmon•2y ago
yep
would hel
p
protestant-coralOP•2y ago

protestant-coralOP•2y ago
my bad !! it was working but i didn't see it! it was appending the conntent of the page to my exsiting page content ! and i was scrolling and suddenly found that!
but shouldn't it replace my page content with that page content?
I mean I was expecting that!
it simply applying the content after my page content! like attaching to the tree!
protestant-coralOP•2y ago
you can see that welcome home element was added to it! instead of removing my root route! Should I shift All my content to index route / ??

protestant-coralOP•2y ago
Thanks ! XD! I debugged my own code! It was like we cant put any content on root route ! the first page of site is being represent by index route! So I ship all the content to my index page! And It's working fine! Root Auto show the conttent of index page atfirst !