Browse Source

Found small issue with encoding uris, simple fix.

pull/996/head
mike12345567 5 years ago
parent
commit
d7db539746
  1. 2
      packages/server/src/api/controllers/static/index.js

2
packages/server/src/api/controllers/static/index.js

@ -29,7 +29,7 @@ function objectStoreUrl() {
async function checkForSelfHostedURL(ctx) {
// the "appId" component of the URL may actually be a specific self hosted URL
let possibleAppUrl = `/${ctx.params.appId}`
let possibleAppUrl = `/${encodeURI(ctx.params.appId)}`
const apps = await getDeployedApps()
if (apps[possibleAppUrl] && apps[possibleAppUrl].appId) {
return apps[possibleAppUrl].appId

Loading…
Cancel
Save