Skip to content
Snippets Groups Projects
Commit 7e4252e9 authored by Rolando Payán Mosqueda's avatar Rolando Payán Mosqueda
Browse files

#3043779 "Source path has to start with a slash" exception when hitting path...

#3043779 "Source path has to start with a slash" exception when hitting path prefixed with index.php with RequestPath condition
parent 35bf1d96
No related branches found
No related tags found
1 merge request!11348#3043779 "Source path has to start with a slash" exception when hitting path...
......@@ -146,7 +146,7 @@ public function getPathByAlias($alias, $langcode = NULL) {
public function getAliasByPath($path, $langcode = NULL) {
// Check the path whitelist, if the top-level part before the first /
// then other add other checks.
if ($this->whitelist->get(strtok(trim($path, '/'), '/')) && (isset($path[0]) && $path[0] !== '/')) {
if ($this->pathPrefixes->get(strtok(trim($path, '/'), '/')) && (isset($path[0]) && $path[0] !== '/')) {
throw new \InvalidArgumentException(sprintf('Source path %s has to start with a slash.', $path));
}
// If no language is explicitly specified we default to the current URL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment