Skip to content

Standard redirect includes for mobile browsers #2

@amcclain

Description

@amcclain

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions