Build: Post-Processing of Custom 404 Page Makes Bundled Resource URLs Relative

Created on 24 Aug 2020  路  4Comments  路  Source: netlify/build

Describe the bug

The post-processing of custom 404 pages results in the links to static resources being stripped of their leading /, resulting in a broken page.

You can see it live here: https://python-typical.org/usage/foo

As illustrated in this community post:

Note that the resources are all relative: <link rel="stylesheet" href="assets/stylesheets/application.adb8469c.css">,

Whereas when I build locally, the resources are absolute: <link rel="stylesheet" href="/assets/stylesheets/application.adb8469c.css">

Configuration

Deploy logs

https://app.netlify.com/sites/typical-python/deploys/5f42d511848e3d5cea1f31ef

Note: I鈥檓 referencing one site in this issue, but this appears to be affecting all of my sites, currently. Additionally, I鈥檝e interacted with other users experiencing this same issue.

Referencing issue: https://github.com/squidfunk/mkdocs-material/issues/1878

bug

All 4 comments

Hi @seandstewart,

Thanks for reaching out!
This repository is not directly involved in post-processing. However, I have transferred the bug description to the team working on this feature, so we can keep this issue to track the progress of solving this problem.

Thanks for the triage, @ehmicky!

@ehmicky sorry to bother, but has there been any progress made on this particular issue? Is there a separate issue tracker I can follow so I'm not bugging the wrong team?

Hi @seandstewart,

Thanks for following up. Unfortunately not. We'll keep you updated as soon as this is fixed!

Was this page helpful?
0 / 5 - 0 ratings