arnaudsm / raito

Mini Markdown Wiki/CMS in 8kb of JavaScript
https://raito.arnaud.at
MIT License
107 stars 13 forks source link

[bug] sitePath infinite redirection if runs from userdir module #37

Closed mckaygerhard closed 1 year ago

mckaygerhard commented 1 year ago

NOTE: this bug are more ancient rather than the last changes you made

context:

Description

i setup to run raito into the user directory, so:

But resulting

infinite redirections and a url as: http://localhost/~general/raito/#//~general/raito/#//~general/raito/#//~general/raito/#//~general/raito/#//~general/raito/#//~general/raito/#/

but if we change the browserRouter to true it work! of course cos only index.html its valid rendering

arnaudsm commented 1 year ago

Can you test on the last version ? I rewrote a significant portion last night

mckaygerhard commented 1 year ago

closed cos with https://github.com/arnaudsm/raito/commit/0a1d9e9c62d45417732429f564ba719593e19db8#r121693269 worked!

but now this commit forced that sitePath require always a / at the beginning and end of the configured path, that is not bad but is not so user friendly due missing documentation, i can help to improve the documentation (that is so so so simplistic)