path()); foreach (static::$pathPrefixesExcludedFromHistory as $excludedPath) { if (str_starts_with($requestPath, $excludedPath)) { return; } } parent::storeCurrentUrl($request, $session); } }