@apify/docs-theme 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@ import styles from './styles.module.css';
|
|
|
9
9
|
export default function HomeBreadcrumbItem() {
|
|
10
10
|
const baseUrl = useBaseUrl('/');
|
|
11
11
|
|
|
12
|
-
const currentPath = useLocation().pathname.replace(`^${baseUrl}
|
|
13
|
-
const homeHref = useBaseUrl(currentPath.split('/')[
|
|
12
|
+
const currentPath = useLocation().pathname.replace(new RegExp(`^${baseUrl}`), '');
|
|
13
|
+
const homeHref = useBaseUrl(currentPath.split('/')[0]);
|
|
14
14
|
|
|
15
15
|
return (
|
|
16
16
|
<li className="breadcrumbs__item">
|