fix: formatting of links from production environment (#358)
This commit is contained in:
1 parent
ae82cfc70a
commit
cdf9c972c9
2 files changed
+2
-2
No files matched your search
@@ -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 =
|
||||||
|
|||||||
@@ -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 =
|
||||||
|
|||||||
Reference in new issue
Block a user