diff --git a/app/utils/browser.js b/app/utils/browser.js index 0ebc5e4bf..0e6728570 100644 --- a/app/utils/browser.js +++ b/app/utils/browser.js @@ -1 +1,7 @@ -export const getPublicUrl = () => `${window.location.protocol}//${window.location.hostname}/app/` \ No newline at end of file +export const getPublicUrl = () => { + if (window.location.port) { + return `${window.location.protocol}//${window.location.hostname}:${window.location.port}/app/` + } + + return `${window.location.protocol}//${window.location.hostname}/app/` +}