Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28987

    Hi all,

    Is there a way to redirect a url to two seperate pages depending on the device?

    For example I have a contact us URL and I want the user to go to specific pages depending on if they are on a mobile device or computer.

    Thanks

    #139362

    Hi,

    You could play with the built-in Enfold function isMobile(), try adding this code in js/avia.js, line 1305 (inside function run($this){ … } ):

    if(isMobile()){

    window.location = "http://google.com";

    }

    Change the http://google.com to the desired URL (for mobile website), i tested locally and it works.

    Regards,

    Josue

    #139363

    Thanks Josue,

    Sorry if I did not explain properly.

    I have a contact us page and I would like people to go to specific pages depending on the device they are on. For example:

    If i visit the contact us page using my phone – /contact-us

    If i visit the contact us page on my computer – /contactus

    So two specific pages for one url depending on the platform they use. Hope that clears it up.

    Thanks

    #139364

    Hi italiatiles,

    That is a question better asked on somewhere like StackOverflow: http://stackoverflow.com/ .

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘One URL to two pages depending on device’ is closed to new replies.