File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
app/code/Magento/Customer/Model Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 21
21
*/
22
22
class Url
23
23
{
24
+ /**
25
+ * No-route url constants
26
+ */
27
+ private const XML_PATH_WEB_DEFAULT_NO_ROUTE = 'web/default/no_route ' ;
28
+
24
29
/**
25
30
* Route for customer account login page
26
31
*/
@@ -263,15 +268,15 @@ private function getRequestReferrer()
263
268
}
264
269
265
270
/**
266
- * Check if Referrer url is no route url
271
+ * Check if Referrer url is no route url
267
272
*
268
273
* @param string $url
269
274
* @return bool
270
275
*/
271
276
private function isNoRouteUrl ($ url )
272
277
{
273
278
$ defaultNoRouteUrl = $ this ->scopeConfig ->getValue (
274
- ' web/default/no_route ' ,
279
+ self :: XML_PATH_WEB_DEFAULT_NO_ROUTE ,
275
280
ScopeInterface::SCOPE_STORE
276
281
);
277
282
$ noRouteUrl = $ this ->urlBuilder ->getUrl ($ defaultNoRouteUrl );
You can’t perform that action at this time.
0 commit comments