go-spatial / fresco

An open source vector tile style editor
https://fresco.go-spatial.org
Apache License 2.0
234 stars 26 forks source link

Incorrect url rewrites when "homepage" parameter is set #152

Open immanuel-h opened 1 year ago

immanuel-h commented 1 year ago

Hi,

Steps to reproduce

  1. set "homepage" in package.json to /fresco
  2. npm run build (even outputs correctly "The project was built assuming it is hosted at /fresco/")
  3. host the generated package somehow under /fresco (eg. simply in nginx)
  4. go to your page

Expected: url rewritten to http://[yoursite]__/fresco__/styles/add/scratch

Actual: url rewritten to http://[yoursite]/styles/add/scratch

This is not a concern as long as the user does not reload the page, but once they do it actually breaks stuff.