Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace http: and https: in external links with nothing #1483

Closed
francwalter opened this issue Feb 26, 2016 · 0 comments
Closed

Replace http: and https: in external links with nothing #1483

francwalter opened this issue Feb 26, 2016 · 0 comments

Comments

@francwalter
Copy link

Hallo
as I asked in the dokuwiki forum the use of external links is a bit unhandy because the http: or https: are kept in the second use of the linkwizard.
When I switch in the linkwiz.js after line 262 something like this:

        if(dw_linkwiz.$entry.val().indexOf('http') == 0)
            dw_linkwiz.$entry.val(dw_linkwiz.$entry.val().replace(/^.*$/, ''));
        else
            dw_linkwiz.$entry.val(dw_linkwiz.$entry.val().replace(/[^:]*$/, ''));

the http: and https: are deleted in the link entry and internal links with : are working still.
Possible to pull it?
Thanks.
frank

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants