-
Notifications
You must be signed in to change notification settings - Fork 415
Closed
Labels
Description
Bug Report
https://docs.numerique.gouv.fr/docs/[DOC_ID]/403/
is not intercepted by the Nginx regexp, leading to a redirect to a 404 page during reload.
docs/src/frontend/apps/impress/conf/default.conf
Lines 14 to 19 in 773b150
location ~ "^/docs/[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}/?$" { | |
try_files $uri /docs/[id]/index.html; | |
add_header X-Frame-Options DENY always; | |
} | |
Possible solution
Remove the 403 page, display a 403 on the current url https://docs.numerique.gouv.fr/docs/[DOC_ID]/
.
Add as well meta if error status:
<meta name="robots" content="noindex" />
<link rel="canonical" href={`/docs/${docId}`} />
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done