Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Paths to assets are incorrect in root-level HTML files #56

Open
damienmckenna opened this issue Jun 26, 2019 · 0 comments
Open

Paths to assets are incorrect in root-level HTML files #56

damienmckenna opened this issue Jun 26, 2019 · 0 comments

Comments

@damienmckenna
Copy link

By default the paths used for the assets are incorrect in root-level HTML files.

For example, the index.html file has this:
<link rel="stylesheet" href="/assets/toolkit/styles/toolkit.css">

.. whereas a file in a subdirectory will have this:
<link rel="stylesheet" href="../assets/toolkit/styles/toolkit.css">

If the files are load from a path where the "dist" directory is not at the top level of the web host, this results in the HTML files at the top level not working correctly whereas HTML files in directories do work correctly.

This could be resolved by using . for all files generated in the top directory.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant