Mobile JS Redirect

Component ID

1959048

Component name

Mobile JS Redirect

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

13853

Component created

Component changed

Component body

This is a simple module that adds a JS in the HTML head to perform a redirect from a desktop site URL to a mobile one or the other way around. This is useful when Varnish or any other reverse proxy cache is being used to cache
your site and keep a mobile vs desktop redirect working.

Install this module like any other module and set the "Desktop site URL" and "Mobile site URL" for this to work.

To be able to access the administrative area or avoid redirection at any point, use the query string below.
?stopredirect=true