🐛(nginx) fix 404 when accessing a doc

We improve the nginx way to access to a specific
doc.
We stop to wait for a initial attempt that
give a 404. If we see a UUID in the url we will
redirect to the doc/[id] page. Next will then
manage the 404.
This commit is contained in:
Anthony LC
2025-04-10 22:54:59 +02:00
parent 96f6aeea60
commit b58c991c81
4 changed files with 13 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
import crypto from 'crypto';
import { expect, test } from '@playwright/test';
import {
@@ -101,8 +103,9 @@ test.describe('Doc Routing: Not loggued', () => {
page,
browserName,
}) => {
await mockedDocument(page, { link_reach: 'public' });
await page.goto('/docs/mocked-document-id/');
const uuid = crypto.randomUUID();
await mockedDocument(page, { link_reach: 'public', id: uuid });
await page.goto(`/docs/${uuid}/`);
await expect(page.locator('h2').getByText('Mocked document')).toBeVisible();
await page.getByRole('button', { name: 'Login' }).click();
await keyCloakSignIn(page, browserName, false);