Skip to content

Fixes Broken Links To Assets#156

Merged
jb3 merged 1 commit into
mainfrom
fix-broken-links
Mar 6, 2021
Merged

Fixes Broken Links To Assets#156
jb3 merged 1 commit into
mainfrom
fix-broken-links

Conversation

@HassanAbouelela
Copy link
Copy Markdown
Contributor

Previously, links to assets in public/ were using relative paths, which works on the home page, but on subpages, such as forms, the app would try to fetch them from an incorrect location, and 404. This PR uses fixed paths for the assets to allow proper locating.

Note: If your IDE complains about being unable to find the files, that's because the fixed path in the source code, and in the compiled output are different (see webpack config).

Sets asset links to absolute paths, so they work on pages.

Signed-off-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
@HassanAbouelela HassanAbouelela added priority: low type: bug Something isn't working labels Feb 22, 2021
@HassanAbouelela HassanAbouelela requested a review from jb3 as a code owner February 22, 2021 07:12
@jb3 jb3 merged commit 9c0f168 into main Mar 6, 2021
@jb3 jb3 deleted the fix-broken-links branch March 6, 2021 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants