Relative to /docs, the Next.js root, /docs resolves as /docs/docs, doing a 404 when opening a new tab or refreshing the page that the client-side router manages to open on an ordinary click.