Double click broken
Seems like there is something broken with the double click behavior after the last update. When I click on a namespace it is not closing anymore, instead it will always be treated like a normal link (double click).
Here is my debug:
Comments (4)
-
repo owner -
Okay, I think i got it. I am using pretty URLs and
_REGEX
returns NULL if it is not matching, what happens because there is no "doku.php?id=" inside of the url-string . I could solve this by replacing_REGEX.exec()
with_REGEX.replace()
.Here is the updated function:
// OLD FUNCTION function trim_url(url) { const _REGEX = /(?:\/doku\.php\?id=)(.[^#]*)/g; var trimmed_url = _REGEX.exec(url); return trimmed_url[1]; } // UPDATED FUNCTION function trim_url(url) { return url.replace(/\/(doku\.php\?id=)?/,''); }
-
repo owner Your solution works and I'm going to release a fixed version of the plugin, but thank to this issue I see I don't handle neither url of the form:
http://example.com/dokuwiki/wiki:syntax
norhttp://example.com/dokuwiki/wiki/syntax
and maybe some other options from theAdvanced
section in theConfiguration Settings
.So, ASAP I will release another version.
-
repo owner - changed status to resolved
fixed issue
#9→ <<cset feb6ee40a102>>
- Log in to comment
Since I can't reproduce this issue, could you please:
<start-page>
page is calledstart
?http://<your.domain>/doku.php?id=<namespace>:<sub-namespace>:<start-page>
?