revenz / Fenrus

A personal home page for quick access to all your personal apps/sites.
MIT License
518 stars 31 forks source link

Feature Request - persistent dashboard selection #119

Closed RoryNesbitt closed 1 year ago

RoryNesbitt commented 2 years ago

If I select a dashboard other than default this will be what I see each time I open fenrus again, until I close my browser. It would be really great if this was persistent each time I opened my browser, so we can have different devices or different browser profiles using the same instance and account but with different selected dashboard

revenz commented 2 years ago

it should be saving the selected dashboard to a cookie and then that is used when loading fenrus. this is certainly working on my instance, as I use a work dashboard on my work computer and a default one on my personal computer.

RoryNesbitt commented 2 years ago

that's interesting, mine only lasts as long as the browser session lasts. Maybe I've got a broken setting somewhere

revenz commented 2 years ago

Look at the network requests, look to see if the cookie is being sent/saved. maybe you have a addon/service that disables cookies?

RoryNesbitt commented 2 years ago

There is indeed cookies being requested, I assume the one named dashbaord is for Fenrus? it seems to change when I change the selected dashboard
~There is also one for jwt, I'm not sure what it's for, and two for organizr even though I'm not loading that~ These seem to be for links connecting to app apis

RoryNesbitt commented 2 years ago

What seems to be happening is the cookie is only requested if I select a dashboard that session. if I haven't selected one (i.e. I first open the browser) the dashboard cookie isn't requested and therefore I'm getting default

revenz commented 2 years ago

The entire reason to use a cookie is so it's persistent and sent with every request.
Try a different browser. curious if it's a browser issue or a machine. Also, do you have a different machine you could try?

RoryNesbitt commented 2 years ago

tried with firefox and vivaldi on two different machines (both are running endeavour with i3, but I made a point to ask the browser to close nicely instead of using the close window keybinding). both machines with both browsers have this exact issue

on the other side the traffic is going via cloudflare with caching, to traefik, to fenrus (a setup that has never caused me issues before) and I never get signed out so cookies in general do work, just the dashboard one

revenz commented 1 year ago

closing as unable to reproduce this