fix: formatting of links from production environment (#358)

This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2021-08-30 14:20:09 +02:00
1 parent ae82cfc70a
commit cdf9c972c9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ const convertToKebabCase = (string) => {
const replaceUrl = (item) => { const replaceUrl = (item) => {
let { url, hierarchy } = item let { url, hierarchy } = item
if (url.includes("api/store") || url.includes("/api/admin")) { if (url.includes("api/store") || url.includes("/api/admin")) {
url = url.replace("#", "/") url = url.replace("#", "")
if (hierarchy.lvl2) { if (hierarchy.lvl2) {
const index = url.lastIndexOf("/") const index = url.lastIndexOf("/")
url = url =
+1 -1
View File
@@ -19,7 +19,7 @@ const Search = () => {
const replaceUrl = item => { const replaceUrl = item => {
let { url, hierarchy } = item let { url, hierarchy } = item
if (url.includes("api/store") || url.includes("/api/admin")) { if (url.includes("api/store") || url.includes("/api/admin")) {
url = url.replace("#", "/") url = url.replace("#", "")
if (hierarchy.lvl2) { if (hierarchy.lvl2) {
const index = url.lastIndexOf("/") const index = url.lastIndexOf("/")
url = url =