Page MenuHomePhabricator

If configured with protocol-relative $wgServer, suggested URL is invalid
Closed, InvalidPublic

Description

Author: daniel

Description:
Patch to fix

e.g.

$wgServer = "//example.com";

Load this URL:
http://example.com/BadPath

Page shows:
...
The URL you requested was not found.
Did you mean to type //example.com/wiki/BadPath ?
...

Also, the URL is not hyperlinked. I expect for the protocol to show, e.g.:
...
The URL you requested was not found.
Did you mean to type http://example.com/wiki/BadPath ?
...

Suggested patch attached.


Version: master
Severity: normal

Attached:

Details

Reference
bz61814

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:05 AM
bzimport set Reference to bz61814.
bzimport added a subscriber: Unknown Object (MLST).

daniel wrote:

Actually, the patch I suggested doesn't fix it. It always puts "http" even if the current protocol is "https".

daniel wrote:

Yeah, this is a messy problem. See #29497

Which extension is this about, and which repository is the patch against?

Daniel Norton: Which extension is this about, and which repository is the patch against?

Unfortunately closing this report as no further information has been provided.

Daniel: Please feel free to reopen this report if you can provide the information asked for. Thanks!