Welcome, Guest
Username Password: Remember me

Showing mobile theme for desktop not working on live server
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Showing mobile theme for desktop not working on live server

Showing mobile theme for desktop not working on live server 13 years, 1 month ago #5859

In the mobile settings, I'm able to leave the 'desktop url' entry empty and I can surf the site without redirection on my localhost. However, when I put it on the live server, it picks up that _MJ is not defined and doesn't allow me to surf the site with a desktop browser.

Why the difference? I need to access some pages of the site from a desktop browser. I've looked and tinkered with the template menu settings and it doesn't seem to help.

Re: Showing mobile theme for desktop not working on live server 13 years, 1 month ago #5919

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Empty Desktop URL leads to incorrect redirect url like "http : /// index.php" and maybe to some other issues.

Re: Showing mobile theme for desktop not working on live server 13 years, 1 month ago #5921

sorry, i don't really understand what this means.
is this a bug which needs to be fixed?
is there a hack I can apply in the meantime?
thanks

Re: Showing mobile theme for desktop not working on live server 13 years, 1 month ago #5927

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
It means that Desktop URL should always correspond to actual site URL. MJ needs it do distinguish mobile (sub)domains and main domain.

If you automatically synchronize local and live websites, just exclude administrator/components/com_mobilejoomla/config.php from the list of synchronized files.
  • Page:
  • 1
Time to create page: 0.14 seconds

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.