-
Notifications
You must be signed in to change notification settings - Fork 76
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
Hide ?force=1 in the URL using History API #2
Comments
actually redirecting is bad pracice. t'll be greate just returning a value = desktop | phone | tablet. So the script is useless in most cases |
@englishextra here redirection only happens if you're on the wrong version of the page. but yes, client-side redirection definitely has performance overhead. |
👍 our team would appreciate this |
So from what I understand the URL would be such as "www.myurl.com?device=deviceType" ? |
just replace with return 1 - this is in my case |
Device.js lets you force loading the exact version of the app to load through the combination of ?device=deviceClassId and ?force=1 GET parameters. However, these could be hidden to give a cleaner URL.
The text was updated successfully, but these errors were encountered: