Skip to content

Commit c200f12

Browse files
author
Peter Bengtsson
authored
crash on redirect_from with a trailing slash (#23888)
1 parent 6f2170e commit c200f12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/content/redirect-orphans.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('redirect orphans', () => {
2121
for (const page of pageList) {
2222
for (const redirectFrom of page.redirect_from || []) {
2323
if (redirectFrom.endsWith('/') && redirectFrom.startsWith('/')) {
24-
console.warn(
24+
throw new Error(
2525
`In ${path.join(
2626
'content',
2727
page.relativePath

0 commit comments

Comments
 (0)