Changeset 13458


Ignore:
Timestamp:
Mar 2, 2012, 4:28:43 PM (9 years ago)
Author:
plg
Message:

feature 2368: better canonical URL for homepage

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/section_init.inc.php

    r13258 r13458  
    158158        }
    159159      }
     160      $page['is_homepage'] = true;
    160161      break;
    161162    }
  • trunk/index.php

    r13062 r13458  
    9090}
    9191
    92 $template->assign('U_CANONICAL', duplicate_index_url());
     92if (isset($page['is_homepage']) and $page['is_homepage'])
     93{
     94  $canonical_url = get_gallery_home_url();
     95}
     96else
     97{
     98  $canonical_url = duplicate_index_url();
     99}
     100$template->assign('U_CANONICAL', $canonical_url);
    93101
    94102//----------------------------------------------------- template initialization
Note: See TracChangeset for help on using the changeset viewer.