Skip to content

Commit

Permalink
fix: #883 Tab view src leading baseURL (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardevcom authored Aug 1, 2024
1 parent 60a4bba commit 1be5497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from 'pathe'
import { withTrailingSlash } from 'ufo'
import { joinURL } from 'ufo'
import {
defineNuxtModule,
installModule,
Expand Down Expand Up @@ -142,7 +142,7 @@ export default defineNuxtModule<ModuleOptions>({
category: 'modules',
view: {
type: 'iframe',
src: withTrailingSlash(viewerConfig.endpoint),
src: joinURL(nuxt.options.app?.baseURL, viewerConfig.endpoint),
},
})
})
Expand Down

0 comments on commit 1be5497

Please sign in to comment.