Page MenuHomePhabricator

uls-previous-languages cookie set separately for each path
Closed, ResolvedPublic

Description

uls-previous-languages is set separately for each path (e.g. /wiki and /w), which means they become inconsistent. After bug 49154 is fixed, it should use wgCookiePath for the path.


Version: master
Severity: minor

Details

Reference
bz49155

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:49 AM
bzimport set Reference to bz49155.

In the meantime, in resources/js/ext.uls.init.js change

$.cookie( mw.uls.previousLanguagesCookie, $.toJSON( previousLanguages ) );

to

$.cookie( mw.uls.previousLanguagesCookie, $.toJSON( previousLanguages ),
     { path: '/' } );

I submitted https://gerrit.wikimedia.org/r/#/c/73506/ , for some reason this bug isn't getting updated.

Gerrit change 73506 merged