aplosdev / aplos

A sleek, contemporary, and purposefully designed VitePress theme
https://aplos.gxbs.me
MIT License
3 stars 3 forks source link

404 after refreshing page #46

Open r2fo opened 1 month ago

r2fo commented 1 month ago

Describe the bug I installed the theme according to the guide. When I run npm docs:dev, everything works. But when I run npm docs:build, and then serve the dist using Nginx, I get a weird bug where refreshing the page results in a 404. I tried it using Python's http server too and get the same bug.

I have deployed it to https://new.r4fo.com and the code can be found at https://github.com/r2fo/r4fo.com-v2

To Reproduce

  1. Follow guide
  2. npm docs:build
  3. serve using Nginx/Python http server
  4. Open a page
  5. Refresh it

Expected behavior The page should appear regardless of a refresh

Desktop (please complete the following information):

GabsEdits commented 1 month ago

Hi! Thanks for the notice! I will look into it the following days. In the meantime, you can try giving the template a shot, which should work fine. Thanks again for the notice 😄

kbdharun commented 3 weeks ago

Hi, the page (both your deployed version and in my testing locally) works fine here even on refresh. By chance are you using any Ad/script-blockers that are interfering with your site?

I tested it with Chrome on Windows with Ublock Origin Lite. Nvm, I can replicate your issue while testing locally but it seems to be fine on your site side.

GabsEdits commented 3 weeks ago

Hi, the page (both your deployed version and in my testing locally) works fine here even on refresh. By chance are you using any Ad/script-blockers that are interfering with your site?

I tested it with Chrome on Windows with Ublock Origin Lite.

Refreshing the homepage is also fine for me, but refreshing any other page gives off an empty page with just the Footer and the Foot of the Helpful layout