Page MenuHomePhabricator

The new wikitext editor should convert bare URLs inner link format
Open, Needs TriagePublic


Currently, the new wikitext editor converts URLs into inner link format (if it is supported) if you previously selected some text. I think simply inserting the URL should behave the same.

For example: wikidata:User:Pasleim/Items for deletion/Page deleted

Event Timeline

Bencemac created this task.Aug 12 2018, 8:53 AM
Restricted Application added a project: VisualEditor. · View Herald TranscriptAug 12 2018, 8:53 AM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

What is the advantage of not converting an external URL to an internal URL?

Not? In my opinion, internal links are nicer, shorter and indicate that better they are linking to a Wikimedia-related project (Wikidata, Commons, Phabricator, etc.)

Ok, I misunderstood your example. You are saying they should be converted, but they are not. This is probably a Parsoid issue...

Esanders removed a project: Parsoid.

I just tested this, and linking a word to, creates

[[wikidata:User:Pasleim/Items for deletion/Page deleted|Foo]]

which seems correct to me

@Esanders Yes, it is correct. My problem is that simply inserting the link does not work like this. For example:

Select text and copy the link:
[[wikidata:User:Pasleim/Items for deletion/Page deleted|text]]

Just copy the link:

I'm a bit confused, can you describe what is happening in simple steps?

Sorry about that. Please watch this video. In my opinion, the software should format the second link (below text) like this
[[wikidata:User:Pasleim/Items for deletion/Page deleted]]

not like this.

Esanders added a comment.EditedAug 12 2018, 10:38 PM

Thanks, I see what you mean. So this is the same behaviour as in VE. The reason for it is that at the time of pasting we don't know that the external link is actually internal (that calculation is done by Parsoid) so we don't know what label to give the link. In most cases users won't create a link without a label, so I don't think this is particularly high priority.