Page MenuHomePhabricator

When announcing a new Newsletter issue, allow for full URLs (and automagically remove the static URL)
Open, LowPublic

Description

Summary
When announcing a new issue of a newsletter allow for publishers to enter the full URL of a page, but strip the https and domain leaving the local page name.

Description
When publishing new issues it is common to copy/paste the URL for a target page. Some (many?) on-wiki urls can contain a long prefix. Remembering and typing these in by hand is cumbersome. The "Page title of the issue" field should allow publishers to paste in the full url, but then strip the HTTP protocol and domain to just show the local page.

Example:
I'm on MediaWiki.org and I wish to publish a new issue of the Discovery Weekly newsletter.
I copy the URL for the target page.

https://www.mediawiki.org/wiki/Discovery/Status_updates/2017-08-28

I paste that into the "Page title of issue" field which removes the //https://www.mediawiki.org/wiki/// prefix.

This leaves "Discovery/Status_updates/2017-08-28"

Event Timeline

QuimGil subscribed.

This is of course a very good idea. I wonder how complex the implementation is.

VisualEditor has exactly this behavior when introducing a full URL as a link: https://www.mediawiki.org/wiki/Discovery/Status_updates/2017-08-28 is automatically converted to Discovery/Status_updates/2017-08-28. I just noticed that the new wikitext editor doesn't (yet?).

If the resolution of this task is simple enough, we can propose it as a Google-Code-in-2017 candidate.