diff --git a/src/PageNav.tsx b/src/PageNav.tsx
index 1b44a4a39e..91120f990d 100644
--- a/src/PageNav.tsx
+++ b/src/PageNav.tsx
@@ -41,8 +41,7 @@ export const PageNav: React.FunctionComponent = () => {
type LeftNavProps = { title: string; path: string };
const LeftNav = ({ title, path }: LeftNavProps) => {
const route = routes(() => {}).find(
- (route) =>
- route.path.replaceAll(/\/:.+?(\?|(?:(?!\/).)*|$)/g, "") === path
+ (route) => route.path.replace(/\/:.+?(\?|(?:(?!\/).)*|$)/g, "") === path
);
if (!route || !hasAccess(route.access)) return <>>;
//remove "/realm-name" from the start of the path
diff --git a/src/components/view-header/ViewHeader.tsx b/src/components/view-header/ViewHeader.tsx
index 6afd96cca6..a8fcddec33 100644
--- a/src/components/view-header/ViewHeader.tsx
+++ b/src/components/view-header/ViewHeader.tsx
@@ -163,7 +163,7 @@ export const ViewHeader = ({
/>
)}
-
+ {divider && }
>
);
};