Answer the question
In order to leave comments, you need to log in
Angular 6 (and below) default route prevents search engine from indexing site?
The essence of the problem is this:
In instructions, books, tutorials, it is indicated everywhere for the default router, to apply a redirect to the necessary route:
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
Answer the question
In order to leave comments, you need to log in
Server-side rendering, universal
By and large, Google does not know how long to play your scripts on the site, so it renders either by timeout or by other factors. To avoid this, you need to render the page on the server yourself and give ready-made markup.
Googlebot:
1) works only with http/ftp protocols;
2) does not store states (cookies and local storage do not work);
3) only supports es-2015 (no way without babel).
You can redirect to /dashboard via nginx.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question