Skip to content

Commit

Permalink
HUE-5924 [responsive] Default fallback for loading Metastore
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoberti committed Feb 23, 2017
1 parent 93e51b1 commit edf3291
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,11 @@ var MetastoreViewModel = (function () {
MetastoreViewModel.prototype.loadURL = function () {
var self = this;

var path = (IS_HUE_4 ? window.location.getParameter('path', true) : window.location.pathname).split('/');
var path = (IS_HUE_4 ? window.location.getParameter('path', true) : window.location.pathname);
if (!path) {
path = '/metastore/tables';
}
path = path.split('/');
if (path[0] === '') {
path.shift();
}
Expand Down

0 comments on commit edf3291

Please sign in to comment.