Skip to content

Commit

Permalink
fix: improve path generator
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Jun 22, 2024
1 parent e278cc3 commit 70705ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/assemblies/inbox/InboxMessaging.vue
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,15 @@ export default {
},

frameUrl(): string {
return `${CONFIG.context.basePath}includes/views/messaging.html`;
// Normalize base path
let basePath = CONFIG.context.basePath || "";

if (basePath.endsWith("/") === true) {
basePath = basePath.slice(0, -1);
}

// Generate frame URL (with base path)
return `${basePath}/includes/views/messaging.html`;
},

selfJID(): JID {
Expand Down

0 comments on commit 70705ac

Please sign in to comment.