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
{{ message }}
This repository has been archived by the owner on May 6, 2022. It is now read-only.
This could be combined with #72 to show how a query string &lang=en or a session string can be used to populate the HTML lang attribute. (Note a direct passthrough of the value would be a significant security risk. It would need to be validated against a list of safe values).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add a simple
getInitialProps
example to the home pagegetInitialProps
is the recommended way to get page-level context in NextJS for things like URL parameters:The text was updated successfully, but these errors were encountered: