We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35122c2 commit 790d942Copy full SHA for 790d942
1 file changed
packages/astro/src/template/4xx.ts
@@ -134,10 +134,11 @@ export function trailingSlashMismatchTemplate(
134
pathname: string,
135
trailingSlash: 'always' | 'never' | 'ignore',
136
) {
137
- const corrected =
+ const corrected = escape(
138
trailingSlash === 'always'
139
? appendForwardSlash(pathname)
140
- : removeTrailingForwardSlash(pathname);
+ : removeTrailingForwardSlash(pathname),
141
+ );
142
return template({
143
pathname,
144
statusCode: 404,
0 commit comments