I'm building a website that's entirely hosted on my own VPS using NodeJS since I don't want to pay for hosting and I already had the VPS so I figured why not use it.
The issue I'm having is whenever I click on a link from the homepage and navigate to that page, the website does exactly what it's supposed to do but the url doesn't update in the address bar.
Say my url is www.examplesite.com and when I click a link, it goes to www.examplesite.com/application. The second url isn't reflected in the address bar so when I refresh www.examplesite.com/application, because it says www.examplesite.com in the address bar of Chrome, it reloads the home page.
Is there a way to fix that via node or will I just have to suck it up and buy web hosting? I'll do it eventually but not for a while.
Perhaps you never call res.end(); in your server function?