-
-
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
[QUESTION] Pages section not routing? Possibly setup incorrectly. #869
Comments
Found the version in the docker logs. I'm on 2.1.1 Thanks. |
I noticed the same issue for us. I think this happens because Dashy is a Single Page Application, and is using client-side routing for the "pages" support. There's an opportunity here to add a handler for the pages specified in the config so that a bookmark to a page will work out-of-the-box. |
|
definitely close as a duplicate. Thanks @steffen-lorenz ! |
I disagree that this is a duplicate. As you can see in my recording, the link does not take me to the sub-page, whereas #763 clearly states that clicking the link on his dashboard will take him properly to the subpage. His issue is with an F5 / refresh, or trying to route directly without first opening the main dashboard. |
I was evaluating Dashy this morning (v2.1.1) and also encountered this issue. The behavior for me is the same, I cannot get the subpage to load from the link (despite the URL changing). If I refresh the page on the subpage link it just shows the primary page (after I set the |
Just following up here, I was able to spend a bit more time on it and resolved the issue. My mistake was giving the full path to the page in my main config; I created a separate directory for pages under |
I tried this as well, but still have the same result, where the separate page is not loading. Would you mind sharing this section of your conf.yml and your separate page yaml @taintedkernel ? |
I too was having this same issue running this in a docker container. But @taintedkernel gave the partial answer. EDIT: I applied the routingMode fix and all work as expected now.
|
Yep, that is pretty much it. The only difference in my case was that I created a directory called pages in both my local filesystem and in the container under /app/public/pages, then mounted this directory in docker (rather then an individual monitoring.yml):
|
Resolved with the above information. Thank you so much! |
Question
I'm trying to setup some extra pages, following your documentation, I've setup a
servers.yml
inside thepublic
directory (same location as my mainconf.yml
file.In the
conf.yml
file I added a top levelpages
section with the name and path attributes for it.Section in
conf.yml
belowThe main page works fine, and the "Servers" button / tab shows up in the upper right. When clicked, the URL path changes to http://:/home/servers (which I presume is right), but the page does not change. If I then click in the URL bar and press the Enter key, the screen shows the message:
Cannot GET /home/servers
My
servers.yml
is as follows:I'm excited to use this feature, but I'm obviously doing something wrong. Any help is greatly appreciated.
I also don't know where to see the version, but I did a
docker-compose pull
anddocker-compose up -d
this morning to make sure I'm on the latest.Category
Configuration
Please tick the boxes
The text was updated successfully, but these errors were encountered: