raphaelletseng / mpreact

multi-page react
0 stars 0 forks source link

Url Home Links broken #1

Open raphaelletseng opened 2 years ago

raphaelletseng commented 2 years ago
Screen Shot 2021-12-31 at 12 34 25 PM

The home page is appearing at the url https://raphaelletseng.gtihub.io and not at https://raphaelletseng.gtihub.io/mpreact/. A different site exists at the first url.

Screen Shot 2021-12-31 at 12 34 46 PM
raphaelletseng commented 2 years ago

So this can be fixed by adding /mpreact/ to the nav links but that seems like a tedious solution and like there is probably a simpler way to do things.

raphaelletseng commented 2 years ago

This broke the blog post slug

raphaelletseng commented 2 years ago

https://stackoverflow.com/questions/27928372/react-router-urls-dont-work-when-refreshing-or-writing-manually

Refreshing a Navlink breaks the site.

raphaelletseng commented 2 years ago

NOTE: if you change the package.json (eg. homepage) make sure to RESTART THE APP.

raphaelletseng commented 2 years ago

Still broken - although the other pages work, the site loads at "raphaelletseng.github.io/mpreact" (as listed in package.json) but if you click the homepage link it takes you to "/" it takes you to "raphaelletseng.github.io" which isn't ideal.