Link back to desktop not working correctly

dryabov
11 years, 1 month ago
That is "Desktop" and "Mobile" links are not from Select Markup modules? Are they embedded as custom HTML module?
mwbaggs
11 years, 1 month ago
They are menu items assigned as external links each with link: index.php/?device=desktop AND index.php/?device=xhtml. The index.php, declaration ensures that the user, regardless of what page they are on can switch between desktop and mobile without being redirected away from the page they are on.

The menu items are setup on the standard menu module which is assigned to position <jdoc:include type="modules" name="website-version" style="none" />

Thanks,

Morgan
dryabov
11 years, 1 month ago
Most likely it is main point. Menu items are passed through SEF, and MJ affects SEF to add device=[mode] parameter (if necessary). I'd transform it to custom html module.

We will try to fix it in next MJ release (to don't change device parameter in URL if it is presented).
mwbaggs
11 years, 1 month ago
If that is the case...why would both links work on the mobile device? They are still passing through the SEF in order to be rendered in both cases?
dryabov
11 years, 1 month ago
Because of "device" parameter is changed in "forced" mode only and there are some differences in work in mobile and desktop modes.
2

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.