-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] BASE_URL inconsistently used #857
Comments
If you're enjoying Dashy, consider dropping us a ⭐ |
This issue has gone 6 weeks without an update. To keep the ticket open, please indicate that it is still relevant in a comment below. Otherwise it will be closed in 5 working days. |
This issue was automatically closed because it has been stalled for over 6 weeks with no activity. |
Hello, yesterday I did a live coding on dashy to deploy it on the GitLab pages. But I noticed that when there is a path, and therefore I have to fill the BASE_URL I had exactly the same behavior. So I think it's a bug. Here is the link of the part of my live on this problem: My code is here : https://lab.frogg.it/froggit/poc/dashy/-/tree/2-ci-deploy-on-froggit-pages My page should be served here : https://froggit.froggit.page/poc/dashy/#/ I tried the v 2.1.0 but I have an almost identical behavior. @Lissy93 can you re-open this issue ?
|
Hello guys, i got the same problem. There will be a fix? |
This is a duplicate of #1036 will close this. |
Environment
Self-Hosted (Docker)
System
No response
Version
2.1.1
Describe the problem
I have multiple apps running on a single domain name, so I run them at separate context paths, with Nginx up front as a reverse proxy to each. There wasn't anything obvious in the documentation about this except a vague nod to
BASE_URL
andVUE_APP_DOMAIN
, and indeed, when setting those to the proper context path and fully-qualified base URL, respectively (which seems a little backward to me, but that's what VUE wants, so...), the app is mostly there... Except for a couple of important bits.The initial loading screen (
initialization.html
) is complete and looks great, but once the build is complete,index.html
and the loaded javascript mis-route two important urls.First is much less important;
loading-screen.css
should, if I'm reading things right, only be relevant for a few seconds while everything else is loaded in behind the scenes, but still is specified as/loading-screen.css
.The second and most important file it fails on is
conf.yml
, which, again, is only specified in the result as/conf.yml
.This means that, in the default routing mode, the app immediately redirects the user to
/404
, which again, is not within theBASE_URL
. Inhash
routing mode, the page stays at theindex.html
, or really at<scheme>://<domain>/${BASE_URL}/#/
, but ends up as a mostly blank page with an empty loading bar across the top; with the defaultconf.yml
with the only addition ofappConfig.routingMode
set tohash
, this means a dark blue screen with a barely-differentiable black strip across the top.There are a couple of ways to handle this on the Nginx side of things, like hard-coding those locations with redirections or rewriting query responses to change the path in these circumstances, but rather figured that could be handled here much easier and more permanently.
Additional info
No response
Please tick the boxes
The text was updated successfully, but these errors were encountered: