Skip to content

Commit 7628335

Browse files
committed
fix for slash in path of notification
1 parent fac2c2b commit 7628335

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,11 @@ export default function App() {
231231

232232
const renderFirstNavigatedPage = () => {
233233
if (location.pathname && location.pathname.includes('approve')) {
234+
console.log(`${approvalType?.toLocaleLowerCase()}/approve?token=${approvalToken}`)
234235
return (
235236
<Route
236237
exact
237-
path={`${approvalType?.toLocaleLowerCase()}/approve?token=${approvalToken}`}
238+
path={`/${approvalType?.toLocaleLowerCase()}/approve`}
238239
render={() =>
239240
GenericDirectApprovalModal && <GenericDirectApprovalModal approvalType={approvalType} />
240241
}

0 commit comments

Comments
 (0)