$('appprefs').hasClassName('on')) {
$('dimpPage').hide();
$('dimpLoading').show();
- return DimpCore.redirect(DIMP.conf.URI_DIMP + '#' + escape(loc), true);
+ return DimpCore.redirect(loc, true);
}
if (loc.startsWith('compose:')) {
this.redirect(url || (DIMP.conf.URI_AJAX + 'logOut'));
},
- redirect: function(url, force)
+ // url = (string) URL to redirect to
+ // hash = (boolean) If true, url is treated as hash information to alter
+ // on the current page
+ redirect: function(url, hash)
{
- window.location.assign(this.addURLParam(url));
-
- // Catch browsers that don't redirect on assign().
- if (force && !Prototype.Browser.WebKit) {
- (function() { window.location.reload(); }).delay(0.5);
+ if (hash) {
+ window.location.hash = escape(url);
+ window.location.reload();
+ } else {
+ window.location.assign(this.addURLParam(url));
}
},