There has only been a single deploy of that page and it has always been broken (in the HTML uploaded and not by anything Netlify did).
It looks like an absolute vs relative path references in the<a>
tags in the HTML is the root cause here.
The starting URL is this (and, please note. that is proxying to the branch subdomain version of the site) :
https://analysis.calitp.org/dla/README.html
The path portion of the URL is this:
/dla/README.html
Using terminology for filesystems, the file README.html
above resides in the subdirectory dla
.
The <a>
tag in the HTML file README.html
is this:
<a class='reference internal' href='/district_4__district_title_district-4-oakland/0__dla_district_report__district_4__district_title_district-4-oakland'>
That path in the href
attribute is this:
/district_4__district_title_district-4-oakland/0__dla_district_report__district_4__district_title_district-4-oakland
As that is an absolute path, it will remove the subdirectory dla
. The finalized path in the browser for the <a>
tag above would be this:
/district_4__district_title_district-4-oakland/0__dla_district_report__district_4__district_title_district-4-oakland
The path in the href
can also be expressed as a relative path like so:
./district_4__district_title_district-4-oakland/0__dla_district_report__district_4__district_title_district-4-oakland
If that is done, the path above is appended to the current directory and the path in the link URL becomes this:
/dla/district_4__district_title_district-4-oakland/0__dla_district_report__district_4__district_title_district-4-oakland
You want the dla
to remain in the path so the href
must use a relative path reference (and it does not).
Nothing at Netlify has changed regarding this. You’ve only made a single deploy of that branch successfully (deploy 647e728d19913538ae08f3b5
) and it has alway had this problem.
Again, the problem is in the HTML in that it is designed using absolute URLs which then break when you proxy to them under a subdirectory. The solution is to make those URLs relative to the current directory in the path.
If there are other questions about this, please let us know.