summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index 939a29e0c4..7cc0221432 100644
--- a/index.php
+++ b/index.php
@@ -86,6 +86,7 @@ if ($ctype=='user') {
$controller
->setPageTitle($ctype=='user' ? WT_I18N::translate('My page') : WT_TREE_TITLE)
->setMetaRobots('index,follow')
+ ->setCanonicalUrl(WT_SCRIPT_NAME . '?ctype=' . $ctype . '&ged=' . WT_GEDCOM)
->pageHeader()
// By default jQuery modifies AJAX URLs to disable caching, causing JS libraries to be loaded many times.
->addInlineJavascript('jQuery.ajaxSetup({cache:true});');