You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason 1:
Currently, open graph protocol information is hardcoded in index.html.
In order to allow it to be dynamic, there are several options.
One is to introduce server side rendering (SSR) so the index page, at least, is built and prepared ahead of time.
This would allow for information to be read from the index page, before the rest of angular/pages/content have been loaded yet. Reading meta allows the application to have a nice touch when sharing (image, description, title, etc.)
However, pay attention that introducing Angular Universal would break hashLocationStrategy (that strategy represents: when refresh is hit on the page, the server is querried for that path, and since there is angular routing introduced, most of those/or all routes don't exist on the server, and server would return 404. Hash location strategy adds # before angular routes, so that refresh is allowed and will not break the website.)
The text was updated successfully, but these errors were encountered:
Reason 1:
Currently, open graph protocol information is hardcoded in index.html.
In order to allow it to be dynamic, there are several options.
One is to introduce server side rendering (SSR) so the index page, at least, is built and prepared ahead of time.
This would allow for information to be read from the index page, before the rest of angular/pages/content have been loaded yet. Reading meta allows the application to have a nice touch when sharing (image, description, title, etc.)
However, pay attention that introducing Angular Universal would break hashLocationStrategy (that strategy represents: when refresh is hit on the page, the server is querried for that path, and since there is angular routing introduced, most of those/or all routes don't exist on the server, and server would return 404. Hash location strategy adds # before angular routes, so that refresh is allowed and will not break the website.)
The text was updated successfully, but these errors were encountered: