Skip to content

Commit ea2a9ea

Browse files
committed
fix(next-drupal): handle archived content responses for path translation
1 parent c1a9054 commit ea2a9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next-drupal/src/next-drupal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ export class NextDrupal extends NextDrupalBase {
939939
cache: options.cache,
940940
})
941941

942-
if (response.status === 404) {
942+
if (response.status === 404 || response.status === 403) {
943943
// Do not throw errors here, otherwise Next.js will catch the error and
944944
// throw a 500. We want a 404.
945945
return null

0 commit comments

Comments
 (0)