@@ -986,12 +986,12 @@ |
||
| 986 | 986 | } |
| 987 | 987 | // Compare field value with starting slashes dropped to the redirectSrcUrl value as well as one with site URL removed, just in case |
| 988 | 988 | if (in_array(ltrim($fieldValue, '/'), [ltrim($srcUrl, '/'), ltrim($urlLess, '/')], true)) { |
| 989 | - $field = $layout->getFieldByHandle($fieldHandle); |
|
| 989 | + $field = $layout->getFieldByHandle($fieldHandle); |
|
| 990 | 990 | |
| 991 | - if ($field instanceof ShortLink) { |
|
| 992 | - $element->setFieldValue($fieldHandle, null); |
|
| 993 | - $match = true; |
|
| 994 | - } |
|
| 991 | + if ($field instanceof ShortLink) { |
|
| 992 | + $element->setFieldValue($fieldHandle, null); |
|
| 993 | + $match = true; |
|
| 994 | + } |
|
| 995 | 995 | } |
| 996 | 996 | } |
| 997 | 997 | |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | } |
| 99 | 99 | } else if (!empty($value) && !StringHelper::startsWith($value, 'http')) { |
| 100 | 100 | $siteUrl = $element->getSite()->getBaseUrl(); |
| 101 | - $value = rtrim($siteUrl, '/') . '/' . ltrim($value, '/'); |
|
| 101 | + $value = rtrim($siteUrl, '/').'/'.ltrim($value, '/'); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | if (!empty($value)) { |