Skip to content

Intermittent 404 with navigation links and images in Azure Static Web Apps #7695

Answered by kamilkrzyskow
seankearon asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @seankearon,
MkDocs navigation works based on relative paths, and generates static HTML files, so the relative paths in the loaded file remain always the same no matter how it's loaded.

MkDocs by default enables the directory url setting and based on that it generates those relative paths:

The issue you're facing is that your URL on the screenshot doesn't have the final /.
Your server is configured to load the correct HTML file despite the path being wrong, but the relative paths inside the source now resolve to different things.

All of the generated paths should be correct with the / at the end, so the paths with…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@alexvoss
Comment options

alexvoss Nov 12, 2024
Collaborator Sponsor

@alexvoss
Comment options

alexvoss Nov 12, 2024
Collaborator Sponsor

@seankearon
Comment options

@seankearon
Comment options

@kamilkrzyskow
Comment options

Answer selected by seankearon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants