Restore not adding custom profile to URL (#66)

See
1527a07d0e
This commit is contained in:
Norbert Renner 2018-10-08 21:19:18 +02:00
parent 5751792b49
commit fa86f0d248

View file

@ -57,6 +57,11 @@ L.BRouter = L.Class.extend({
delete params.profile;
if (params.alternativeidx == 0)
delete params.alternativeidx;
// don't add custom profile, as these are only stored temporarily
if (params.profile && params.profile.substring(0, 7) === 'custom_') {
delete params.profile;
}
}
return params;