Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
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.
Comments
Comment #1
hass commentedsorry, i don't understand this line
shouldn't this:
if not this looks like a redirection loop from http://www.example.com/ to http://www.example.com/, isn't it?
Comment #2
nicholasthompsonYou could be onto something there... I'll try it out later - but the logic sounds right. I wonder why I did that...
Comment #3
nicholasthompsonJust 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.
Comment #4
nicholasthompsonThis was rolled in a while ago - there is currently another issue (http://drupal.org/node/124704) open regarding an endless loop on the frontpage.
Comment #5
hass commentedthis one is a duplicate of #124704, where i posted a patch for this.