Skip to content

Commit 28d816f

Browse files
committed
Issue 35838: update code
1 parent 67f340b commit 28d816f

File tree

1 file changed

+7
-2
lines changed
  • app/code/Magento/Customer/Model

1 file changed

+7
-2
lines changed

app/code/Magento/Customer/Model/Url.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
*/
2222
class Url
2323
{
24+
/**
25+
* No-route url constants
26+
*/
27+
private const XML_PATH_WEB_DEFAULT_NO_ROUTE = 'web/default/no_route';
28+
2429
/**
2530
* Route for customer account login page
2631
*/
@@ -263,15 +268,15 @@ private function getRequestReferrer()
263268
}
264269

265270
/**
266-
* Check if Referrer url is no route url
271+
* Check if Referrer url is no route url
267272
*
268273
* @param string $url
269274
* @return bool
270275
*/
271276
private function isNoRouteUrl($url)
272277
{
273278
$defaultNoRouteUrl = $this->scopeConfig->getValue(
274-
'web/default/no_route',
279+
self::XML_PATH_WEB_DEFAULT_NO_ROUTE,
275280
ScopeInterface::SCOPE_STORE
276281
);
277282
$noRouteUrl = $this->urlBuilder->getUrl($defaultNoRouteUrl);

0 commit comments

Comments
 (0)