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

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

View File

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

View File

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