diff options
author | plegall <plg@piwigo.org> | 2012-03-02 15:28:43 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-03-02 15:28:43 +0000 |
commit | 65bb5d44b61565e1896c51e58b0ccccf8bcda62c (patch) | |
tree | 5329e9585fbef95d8a53f9d93e4b434fab9941d5 /index.php | |
parent | 7a28277196060df76ef20d8f411c87b645cd2dfb (diff) |
feature 2368: better canonical URL for homepage
git-svn-id: http://piwigo.org/svn/trunk@13458 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -89,7 +89,15 @@ if (isset($_GET['caddie'])) redirect(duplicate_index_url()); } -$template->assign('U_CANONICAL', duplicate_index_url()); +if (isset($page['is_homepage']) and $page['is_homepage']) +{ + $canonical_url = get_gallery_home_url(); +} +else +{ + $canonical_url = duplicate_index_url(); +} +$template->assign('U_CANONICAL', $canonical_url); //----------------------------------------------------- template initialization // |