fix: formatting of links from production environment (#358)
This commit is contained in:
committed by
GitHub
parent
ae82cfc70a
commit
cdf9c972c9
@@ -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 =
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user