Closed Munter closed 5 years ago
It seems to go wrong when the target of the <a href="https://mntr.dk">
is added to the graph. This check comes out as false: https://github.com/assetgraph/assetgraph/blob/89ff06a882142006da8d3f4014308aba8c51b2f4/lib/AssetGraph.js#L242
Because the canonical root has been normalized to https://mntr.dk/
, and https://mntr.dk
does not start with that because of the missing trailing slash. It seems like we should add normalize asset urls so that there's always a slash after the hostname (since https://mntr.dk
really is the same url as https://mntr.dk/
).
The following HTML
Checked with this command line:
Results in this TAP output:
It looks like hyperlink follows the link because it is a match for the canonical root, but instead of resolving to index.html on the local disk, it seems to load the content from
https://mntr.dk
and keeps running the checks from that page. Only the online deployed index page has the links to those hashed file names. The canonical link resolution makes hyperlink look for the hashed files on local disk.Any ideas on this one @papandreou ?