-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nav: left sidebar isn't visible without js #856
Comments
Thoughts @iAdramelk? |
@jorgeorpinel Not exactly. NextLink is wrapping the regular links and passing the href for them. So in the generated HTML, there are always exists regular links with the correct href attribute. On the client navigation through this links is prevented by Event.preventDefault(), and Next's logic is used instead, but crawlers and users can just use regular links and hrefs as usual. |
But the submenus that are not visible without JS is a problem. We probably should fix it together with #724. And it means that we should remove the need for set height to display submenu, so either remove animations or implement them in some other way. |
So you're saying the SSR HTML does have the full nav regardless of JS? (Meaning the site can be easily crawled.)
Agree but would not combine that with #724. Would just change the title and description of this issue. |
Just to be precise - the title is not exactly correct, btw - most engines crawl the website easily since they support JS. So, it's more about optimization, including SEO of course. And SSR itself is more about proper behavior with things like 404 and optimization again. |
also, NextLink is "crawlable", the problem is with nav bar only as far as I understand (as it was before btw without SSR). |
@iAdramelk are they just not visible but the HTML is there? Because in that case this may not be a problem after all. |
@jorgeorpinel yep, just not visible. Because we can't calculate submenus height correctly on the server, we just assign them height 0. But it still would be a good thing to have working menus even without the js. |
OK so they ARE rendered, but with height 0. I then agree with Alexey's idea:
Do you agree @shcheklein ? If so I'll move this requirement over to that existing issue. |
@jorgeorpinel I would keep them separate. They are too different. It just happened that a PR for that one can close this one as well. |
Disclaimer: I'm not sure the title is completely accurate.See #834 (review) for context Summary:So, possible solutions:
The text was updated successfully, but these errors were encountered: