Skip to content

Commit e95e6a6

Browse files
committed
fix(ui-api): use relative URL to avoid mixed content error
1 parent 3d7e877 commit e95e6a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-api/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function uiRoutes() {
2121
router.post('/jobs/remove', [DashboardController, 'removeJob'])
2222

2323
router.get('/app', async ({ response, request }) => {
24-
const baseUrl = request.completeUrl().slice(0, -4) // Remove '/app' from the URL
24+
const baseUrl = request.url().slice(0, -4)
2525

2626
const html = await renderJobsUi({ baseUrl })
2727
return response.type('html').send(html)

0 commit comments

Comments
 (0)