lukejacksonn / servor

Dependency free file server for single page app development
MIT License
1.04k stars 70 forks source link

Option for disable the injection of base tag #52

Closed MeloJR closed 4 years ago

MeloJR commented 4 years ago

With the new version when I reload a custom route (for example /profile) servor injects a <meta charset="UTF-8" > and a` tags at the start of my index.html, so my files are not found because they expect that base has to be "/".

Can I use any option to disable this behavior?

lukejacksonn commented 4 years ago

Hey 👋 in my tests I haven't found this breaking any old behaviour.. are you using the --static flag? If so.. then I'd expect to see this but otherwise I'd expect the injected base tag to just be:

<base href="/">

Which shouldn't cause any issues 🤔 have you got a demo or some reproduction steps?

lukejacksonn commented 4 years ago

Oh damn.. I see this now 😅 wow how did I miss this! Will fix now 👍

lukejacksonn commented 4 years ago

Hopefully that does it for you @MeloJR thanks for reporting the issue so promptly. Apologies for the breakage, please let me know if it didn't resolve your issue 🙇

MeloJR commented 4 years ago

Now it works perfectly! Thank you so much!