mediawiki-extensions-Visual.../modules/ve-mw/init/targets
Bartosz Dziewoński 9ef039dd4b DesktopArticleTarget.init: Fix URI comparison if it contains a port number
If the wiki runs on a host that contains a port number, section edit
links would always reload the page, and the "Add section" tab would
not work.

As it happens, my local testing wiki runs on localhost:3080.

It is an unfortunate naming mishap:
* mw.Uri#host is equivalent to location.hostname
* mw.Uri#getHostPort is equivalent to location.host

In this case, we have to compare the port too, otherwise a setup (my
setup ;) ) where one starts up another wiki on localhost:3081 to test
cross-wiki features would fail.

Change-Id: Ib7de4ba3c3a84888f24186af03bd9dcced131051
2018-07-04 00:11:48 +02:00
..
ve.init.mw.DesktopArticleTarget.init.js DesktopArticleTarget.init: Fix URI comparison if it contains a port number 2018-07-04 00:11:48 +02:00
ve.init.mw.DesktopArticleTarget.js DesktopArticleTarget: consolidate edit tab behavior 2018-07-02 16:17:15 -05:00
ve.init.mw.MobileArticleTarget.js MobileArticleTarget: Include placeholder for references 2018-05-24 17:18:50 +00:00