From 59cb0591434c1deb93b6bc07d001343b07af6982 Mon Sep 17 00:00:00 2001 From: jlpereira Date: Thu, 8 Jun 2023 17:35:02 -0300 Subject: [PATCH] Check hash mode --- src/plugins/schemaOrg/nodes/Taxon.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/schemaOrg/nodes/Taxon.js b/src/plugins/schemaOrg/nodes/Taxon.js index 0789ced..25cb6f5 100644 --- a/src/plugins/schemaOrg/nodes/Taxon.js +++ b/src/plugins/schemaOrg/nodes/Taxon.js @@ -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(