Created
June 25, 2015 07:42
-
-
Save speedygfw/3917d4b5fbab2fbaebe4 to your computer and use it in GitHub Desktop.
OXID - Kanonische URLs in Kategorien auf die Hauptseite zeigen lassen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getCanonicalUrl() | |
{ | |
if (($oCategory = $this->getActiveCategory())) { | |
$oUtils = oxRegistry::get("oxUtilsUrl"); | |
if (oxRegistry::getUtils()->seoIsActive()) { | |
$sUrl = $oUtils->prepareCanonicalUrl( | |
$oCategory->getBaseSeoLink($oCategory->getLanguage(), '') | |
); | |
} else { | |
$sUrl = $oUtils->prepareCanonicalUrl( | |
$oCategory->getBaseStdLink($oCategory->getLanguage(), '') | |
); | |
} | |
return $sUrl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dazu die alist erweitern!