Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Change to desktop version in mobile version
Hi,
I am using Liferay 7 GA4 CE. I have two different sites, one for the desktop version(which is also responsive) and another for the mobile devices. I use mobile device rules to redirect users to mobile version when they are visiting the page through a mobile or a tablet, but i also need a button in the mobile site to redirect them to desktop site.
The problem is that I can´t find the way to do that, since the rule I defined, avoid accesing desktop site because always makes the redirection to the mobile site.
Do you know if there is a way to solve this? I am completely lost.
Thanks in advance.
I am using Liferay 7 GA4 CE. I have two different sites, one for the desktop version(which is also responsive) and another for the mobile devices. I use mobile device rules to redirect users to mobile version when they are visiting the page through a mobile or a tablet, but i also need a button in the mobile site to redirect them to desktop site.
The problem is that I can´t find the way to do that, since the rule I defined, avoid accesing desktop site because always makes the redirection to the mobile site.
Do you know if there is a way to solve this? I am completely lost.
Thanks in advance.
How you can navigate to Descktop version from mobile? I am curious about it.
Thank you for the informative post.
In theme detect device and then window.location.href to the relevant url. In the footer add a jQuery toggle button to switch between the two sites.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™