This should work, kinda does, but...secrets don't show in popup when they should
This seems to work okay in a lot of places, though it could be better tested (manually that is; it's not unit tested at all right now).
Biggest problem is that when it redirects to /popup, the secrets don't show! The if you go to /list and reload, the secrets will show there, and then they'll show up in /popup. Strange.