yuki / myVault

A web interface for HashiCorp Vault which allow to edit secrets with a Markdown editor
https://yuki.github.io/myVault/
GNU General Public License v3.0
0 stars 0 forks source link

Improve the URL for secret navigation #47

Open yuki opened 6 years ago

yuki commented 6 years ago

Right now the url is like "https://myvault.example.com/#!/secret/foo", and it shows the secret. When showing the secret, there's a "hack" when clicking a link in the TOC ($('div.markdown-toc a').click(function(e)... ) to scroll down to its section.

It's working, but it doesn't change the URL/hash. It should be changed to something like "https://myvault.example.com/#!/secret/foo#section" in order to have "traceability".

This should be done in "hash_changed(event)"