Skip to content

Add config option for where to redirect mobile/phone browsers #12

Description

@hammerlabs

New code in my_base.php would look like:

$config["mobile_redirect_url"] = "/mobile";

and then in device_redirect.php:

redirect( $this->config->item( 'mobile_redirect_url' ) );

I'd also like to optionally set all controllers on the site to force mobile detection and redirection. Perhaps we leave that turned off for development, but enabled for production and testing environments only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions