mirror of
git://git.proxmox.com/git/pve-docs.git
synced 2025-03-09 08:58:19 +03:00
api-viewer: trim trailing slashes and spaces from tree-path url
as else the store.findNode(...) works on "/access" but not "/access/", which some browser auto-complete to. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ab918a4fc7
commit
78bcda1de1
@ -458,7 +458,7 @@ Ext.onReady(function() {
|
||||
});
|
||||
|
||||
var deepLink = function() {
|
||||
var path = window.location.hash.substring(1);
|
||||
var path = window.location.hash.substring(1).replace(/\/\s*$/, '')
|
||||
var endpoint = store.findNode('path', path);
|
||||
|
||||
if (endpoint) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user