HULP: SEO issues when intercepting routes with modals
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
I have a site where all product pages are shown with a modal(intercepting the route, the url changes).
I also have a dedicated page for the same product.
THE PROBLEM is that google keeps showing an error for some pages, it's random, it sometimes discover pages, then undiscover them and I've seen this behavior for around 5-6 months.
The issue is not only "crawled, not indexed" because it shows and I can't get rid of it, it's always in the console.
Nextjs has a BIG limitation and that's we can't optionally navigate to the intercepted route so I had to hack the click so when people click a product in the home page(or any other place different from /products), it will navigate to /products and show the modal, could this be the issue?
Any clue?
I also have a dedicated page for the same product.
THE PROBLEM is that google keeps showing an error for some pages, it's random, it sometimes discover pages, then undiscover them and I've seen this behavior for around 5-6 months.
The issue is not only "crawled, not indexed" because it shows and I can't get rid of it, it's always in the console.
Nextjs has a BIG limitation and that's we can't optionally navigate to the intercepted route so I had to hack the click so when people click a product in the home page(or any other place different from /products), it will navigate to /products and show the modal, could this be the issue?
Any clue?
4 Replies
Holland Lop
Without knowing more about your situation, it is hard to pin down exactly why this is happening for you. It might be helpful to know more about the limitation you mentioned regarding 'optionally navigating to the intercepted route' -- I'm not sure I understand exactly what you're referring to.
@Holland Lop Without knowing more about your situation, it is hard to pin down exactly why this is happening for you. It might be helpful to know more about the limitation you mentioned regarding 'optionally navigating to the intercepted route' -- I'm not sure I understand exactly what you're referring to.
Barbary LionOP
Thanks for the reply. When intercepting routes with modal in nextjs, let's say you are at "/products" then click a product, it will open the modal, BUT when you click a link( let's say in the "/" page) that goes to the product page, it will show both the static and modal page, you can't optionally intercept a route and just show the static page and not both. So i "hacked" the click and when clicking the product from let's say the home page, I first navigate to "/products" then open the modal. This might be the issue but I'm not entirely sure.
i'm sorry i edited the post many times
you can see it here: www.soloprefabricadas.cl click a house from the home page and it will behave as expected