From 27bdabcfeb7f5cdae0ee5d88b3007d9fb9ee064f Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Thu, 6 May 2021 09:02:05 -0400 Subject: [PATCH] Fix trailing slash breaking tab navigation --- src/views/studio/studio-tab-nav.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/studio/studio-tab-nav.jsx b/src/views/studio/studio-tab-nav.jsx index c6a490b3e..6f96c35f9 100644 --- a/src/views/studio/studio-tab-nav.jsx +++ b/src/views/studio/studio-tab-nav.jsx @@ -3,8 +3,8 @@ import {useRouteMatch, NavLink} from 'react-router-dom'; import SubNavigation from '../../components/subnavigation/subnavigation.jsx'; const StudioTabNav = () => { - const match = useRouteMatch(); - + const {params: {studioPath, studioId}} = useRouteMatch(); + const base = `/${studioPath}/${studioId}`; return ( { >
  • Projects
  • Curators
  • Comments
  • Activity