feat(client-redirects-plugin): support fully qualified urls and querystring/hash in destination/to url (#9171)

This commit is contained in:
Sébastien Lorber 2023-07-21 19:54:40 +02:00 committed by GitHub
parent 4ea0a70f93
commit 09ea3bcfab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 260 additions and 44 deletions

View file

@ -91,7 +91,7 @@ export const PathnameSchema = Joi.string()
return val;
})
.message(
'{{#label}} is not a valid pathname. Pathname should start with slash and not contain any domain or query string.',
'{{#label}} ({{#value}}) is not a valid pathname. Pathname should start with slash and not contain any domain or query string.',
);
// Normalized schema for url path segments: baseUrl + routeBasePath...