@samitouri / QOSami-HFS / commits / 0eebb944

fix: admin/home: frontend-end link wasn't working with rev-proxy

Massimo Melina committed May 9, 2023 at 12:04 UTC 0eebb94458cf3c5bebc62c30284bdb4a068b322f
1 file changed +1 -1
admin/src/HomePage.ts
+1 -1
@@ -56,7 +56,7 @@ export default function HomePage() {
56 !vfs ? h(LinearProgress)
57 : !vfs.root?.children?.length && !vfs.root?.source ? entry('warning', "You have no files shared", SOLUTION_SEP, fsLink("add some"))
58 : entry('', md("This is Admin-panel, where you manage your server. Access your files on "),
59 - h(Link, { target:'frontend', href: '/' }, "Front-end", h(Launch, { sx: { verticalAlign: 'sub', ml: '.2em' } }))),
59 + h(Link, { target:'frontend', href: '../..' }, "Front-end", h(Launch, { sx: { verticalAlign: 'sub', ml: '.2em' } }))),
60 !href && entry('warning', "Frontend unreachable: ",
61 _.map(serverErrors, (v,k) => k + " " + (v ? "is in error" : "is off")).join(', '),
62 !errors.length && [ SOLUTION_SEP, cfgLink("switch http or https on") ]