diff --git a/polygerrit-ui/app/scripts/app.js b/polygerrit-ui/app/scripts/app.js index 659d19fc1c..ce1a9b8959 100644 --- a/polygerrit-ui/app/scripts/app.js +++ b/polygerrit-ui/app/scripts/app.js @@ -34,7 +34,7 @@ window.addEventListener('WebComponentsReady', function() { // Routes. page('/', loadUser, function(data) { // For backward compatibility with GWT links. - if (data.hash != null) { + if (data.hash) { page.redirect(data.hash); return; }