From 0310bab95d999a062515dcd83c98976f5f96ca93 Mon Sep 17 00:00:00 2001 From: sunnyjey <34238611+sunnyjey@users.noreply.github.com> Date: Wed, 8 Sep 2021 18:27:21 +0530 Subject: [PATCH] Adds Missing J! route to canonical tag Canonical URL is very important in SEO to inform Search Engines to index correct URL. At present, jRoute is missing in the Canonical tag (though it is correctly hyperlinked). --- components/com_fabrik/views/form/view.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/com_fabrik/views/form/view.html.php b/components/com_fabrik/views/form/view.html.php index 28ce6977a82..26207c5cb17 100644 --- a/components/com_fabrik/views/form/view.html.php +++ b/components/com_fabrik/views/form/view.html.php @@ -120,7 +120,7 @@ public function setCanonicalLink() { if (!$this->app->isAdmin() && !$this->isMambot) { - $url = $this->getCanonicalLink(); + $url = JUri::root() . trim( JRoute::_($this->getCanonicalLink()), '/' ); // Set a flag so that the system plugin can clear out any other canonical links. $this->session->set('fabrik.clearCanonical', true);