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 2121 */
2222class 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 );
You can’t perform that action at this time.
0 commit comments