Skip to content
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

Standard redirect includes for mobile browsers #2

Open
amcclain opened this issue Dec 14, 2018 · 0 comments
Open

Standard redirect includes for mobile browsers #2

amcclain opened this issue Dec 14, 2018 · 0 comments
Assignees

Comments

@amcclain
Copy link
Member

amcclain commented Dec 14, 2018

We have a basic $is_mobile variable set in our xh.conf:

map $is_desktop $is_mobile {

It would be helpful to have a standard one-line include we could drop in a location block to use this detection to either a) redirect to '/mobile/' or b) redirect to a very simple but well-formatted HTML page we include in the base image that indicates mobile is not supported. These could be two includes e.g. redirectToMobile and renderMobileNotSupported.

@amcclain amcclain self-assigned this Dec 14, 2018
@amcclain amcclain changed the title nginx - detect mobile browsers / standard redirect to mobile app if supported nginx - detect mobile browsers / redirect to mobile app if supported Dec 14, 2018
@amcclain amcclain changed the title nginx - detect mobile browsers / redirect to mobile app if supported nginx - dD Sep 13, 2019
@amcclain amcclain changed the title nginx - dD Detect mobile browsers / standard redirect to mobile app if supported Sep 13, 2019
@amcclain amcclain transferred this issue from xh/hoist-dev-utils Sep 13, 2019
@amcclain amcclain changed the title Detect mobile browsers / standard redirect to mobile app if supported Standard redirect includes for mobile browsers Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant