Welcome, Guest
Username Password: Remember me

isHome already returns true
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: isHome already returns true

isHome already returns true 11 years, 1 month ago #14267

  • dbritten
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,

I've got a site upgraded to Joomla 3 and it works OK on the desktop.

Installed the latest version on Joomla Mobile and i'm testing with the default template but finding that its not working as expected - the front page loads but clicking a menu link changes the url (so looks like its going to the right page) but the page does not update.

On further investigation it (some debug code in the template) - it isn't working because the called to MobileJoomla->isHome() is always returning true - even if i'm not on the home page.

I've tried forcing the homepage to a particular page - but no joy.

Was almost going to file this as a bug - but find that hard to believe - anyone any idea what could be going on here?

thanks, Scott

Re: isHome already returns true 11 years, 1 month ago #14270

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4866
  • Karma: 105
Thank you for report.
Fixed in repository:
github.com/mobilejoomla/mobilejoomla/commit/9fa5369bc5d7e9981024258ebebf8d5f6a26e8c7
Will be included into next MJ release.

Re: isHome always returns true 11 years, 1 month ago #14309

  • dbritten
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Already was meant to be always - but I think you got the idea.

Did that update - thanks for that.  Looks better but one other issue.

If I load the site with mobile joomla but with no path e.g. 

somehost.com/

Then isHome still returns true.

If I load it at 

somehost.com/index.php/home

Then isHome returns true.

We are forcing the home page.

Does that make sense - I'm I missing something or is this expected behaviour.

thanks, Scott
  • Page:
  • 1
Time to create page: 0.06 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.