opendata-guru / peacock-user-ui

Open Data Portal
https://opendata-guru.github.io/peacock-user-ui/
Apache License 2.0
4 stars 1 forks source link

Enable subfolder usage #14

Closed tursics closed 2 years ago

tursics commented 2 years ago

Describe the bug I can not use this project in subfolders like /peacock-user-ui/datasets

To Reproduce Steps to reproduce the behavior:

  1. Go to https://opendata-guru.github.io/peacock-user-ui/datasets
  2. Open developer console
  3. See error
/css/app.common.css:1          Failed to load resource: the server responded with a status of 404 ()
/js/app.common.js:1          Failed to load resource: the server responded with a status of 404 ()
/assets/favicon.ico:1          Failed to load resource: the server responded with a status of 404 ()
  1. click on a dataset to get more information
  2. See error
bootstrap:139          GET https://opendata-guru.github.io/css/app.common.css net::ERR_ABORTED 404
component @ router.js:25
(anonym) @ vue-router.esm.js:1903
bootstrap:195          GET https://opendata-guru.github.io/js/app.common.js net::ERR_ABORTED 404
component @ router.js:25
(anonym) @ vue-router.esm.js:1903
vue-router.esm.js:2079 Error: Loading CSS chunk 2 failed.
(/css/app.common.css)
    at HTMLLinkElement.s.<computed>.s.<computed>.<computed>.t.push.s.<computed>.g.onerror (bootstrap:129:17)

Expected behavior No errors and navigate to the details page.

Additional context Vue.js is compiled with lazy loading js and css files. I changed the folder in the config.js file but this might not be reflected to Vue