Skip to content

Commit

Permalink
Add base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jun 8, 2023
1 parent 80ae2be commit 4eb385b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/plugins/schemaOrg/nodes/Taxon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ function removeEmptyProperties(obj) {
}

function makeUrlPath(host, path) {
const { hash_mode } = __APP_ENV__
const { hash_mode, base_url = '' } = __APP_ENV__
const fullPath = (base_url + (hash_mode ? '/#' + path : path)).replaceAll(
'//',
'/'
)

return [host, path].join(hash_mode ? '/#' : '')
return [host, fullPath].join('')
}

export function taxonResolver(
Expand Down

0 comments on commit 4eb385b

Please sign in to comment.