Skip to content

Commit

Permalink
[frontend] added 'hue' to metastore url prefix when running Knox
Browse files Browse the repository at this point in the history
Previously the hue prefix was only added if Knox was not running, which caused the back button to trigger a 404.
  • Loading branch information
bjornalm committed Jan 26, 2024
1 parent 20f3cf4 commit 55f561b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,9 @@ class MetastoreViewModel {
});

huePubSub.subscribe('metastore.url.change', () => {
const prefix =
window.HUE_BASE_URL && window.HUE_BASE_URL.length
? window.HUE_BASE_URL + '/metastore/'
: '/hue/metastore/';
const possibleKnoxUrlPathPrefix = window.HUE_BASE_URL;
const prefix = possibleKnoxUrlPathPrefix + '/hue/metastore/';

if (this.source() && this.source().namespace()) {
const params = {
source_type: this.source().type
Expand Down

0 comments on commit 55f561b

Please sign in to comment.