Skip to content

Commit

Permalink
Check hash mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jun 8, 2023
1 parent cfd4d8e commit 59cb059
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/schemaOrg/nodes/Taxon.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ function removeEmptyProperties(obj) {
}

function makeUrlPath(host, path) {
return host && path ? `${host}${path}` : ''
const { hash_mode } = __APP_ENV__

return hash_mode ? host + '/#' + path : host + path
}

export function taxonResolver(
Expand Down

0 comments on commit 59cb059

Please sign in to comment.