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

unlink: mainspace pages with colon are parsed incorrectly #1503

Closed
NovemLinguae opened this issue Jan 25, 2022 · 0 comments · Fixed by #1504
Closed

unlink: mainspace pages with colon are parsed incorrectly #1503

NovemLinguae opened this issue Jan 25, 2022 · 0 comments · Fixed by #1504

Comments

@NovemLinguae
Copy link
Member

NovemLinguae commented Jan 25, 2022

Example: https://test.wikipedia.org/wiki/Cyber_Seduction:_His_Secret_Life

Running TW->Unlink on this page will not work because it has a colon in the title. It will throw this error.

2022-01-24_192214

Reported by Liz at WT:TWINKLE - https://en.wikipedia.org/wiki/Wikipedia_talk:Twinkle#Problem_with_unlinking_backlinks

Line of code where error is occurring:

twinkle/morebits.js

Lines 4929 to 4932 in 10021f1

var idx = link_target.indexOf(':');
if (idx > 0) {
ns = link_target.slice(0, idx);
title = link_target.slice(idx + 1);

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

Successfully merging a pull request may close this issue.

1 participant