diff --git a/code/dataobjects/LinkMapping.php b/code/dataobjects/LinkMapping.php index 815d87d..44df92e 100644 --- a/code/dataobjects/LinkMapping.php +++ b/code/dataobjects/LinkMapping.php @@ -308,7 +308,7 @@ public function onBeforeWrite() { parent::onBeforeWrite(); $this->MappedLink = MisdirectionService::unify_URL($this->MappedLink); - $this->RedirectLink = MisdirectionService::unify_URL($this->RedirectLink); + $this->RedirectLink = trim($this->RedirectLink, ' ?/'); $this->HostnameRestriction = MisdirectionService::unify_URL($this->HostnameRestriction); } @@ -403,7 +403,7 @@ public function getLinkHost() { public function getLinkSummary() { - return ($link = $this->getLink()) ? MisdirectionService::unify_URL($link) : '-'; + return ($link = $this->getLink()) ? trim($link, ' ?/') : '-'; } /**