check out drupal_is_front_page, please. The function looks completely different.

Comments

hass’s picture

Category: bug » support

sorry, i don't understand this line

$frontpage = variable_get('site_frontpage', '/');

shouldn't this:

$frontpage = variable_get('site_frontpage', 'node');

if not this looks like a redirection loop from http://www.example.com/ to http://www.example.com/, isn't it?

nicholasthompson’s picture

You could be onto something there... I'll try it out later - but the logic sounds right. I wonder why I did that...

nicholasthompson’s picture

Version: 7.x-1.x-dev » 4.7.x-1.x-dev

Just noticed in the API - there is a drupal_is_front_page() command... I'm updating 4.7 (dev) to use this. I'll roll this into 5.0 too when I get a minute.

nicholasthompson’s picture

Status: Active » Fixed

This was rolled in a while ago - there is currently another issue (http://drupal.org/node/124704) open regarding an endless loop on the frontpage.

hass’s picture

Status: Fixed » Closed (duplicate)

this one is a duplicate of #124704, where i posted a patch for this.