aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorMaZderMind2015-03-03 11:20:45 +0100
committerMaZderMind2015-03-03 11:20:45 +0100
commit9f9fe26bdde914ea5d090755b30c39fc1d6a468a (patch)
tree80fa4e61a458d186b96718dc010b6896d87e91a9 /template
parent7d0d4db2e41b1850cb1005c0a0bfde8967d4c3b2 (diff)
Fix Canonical-URL when deployed in a Folder
Diffstat (limited to '')
-rw-r--r--template/page.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/page.phtml b/template/page.phtml
index 498036a..9af5d7b 100644
--- a/template/page.phtml
+++ b/template/page.phtml
@@ -27,7 +27,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<base href="<?=h($baseurl)?>" />
- <link href="<?=h($baseurl.ltrim($_SERVER['REQUEST_URI'], '/'))?>" rel="canonical" />
+ <link href="<?=h($baseurl.forceslash($GLOBALS['ROUTE']))?>" rel="canonical" />
<link href="assets/img/apple-touch-icon/76x76.png" rel="apple-touch-icon" />
<link href="assets/img/apple-touch-icon/76x76.png" rel="apple-touch-icon" sizes="76x76" />