Adding additional routes to client side

fqdn/account/tickets works fqdn/account/tickets/<somestuff> doesnt work
import React from 'react';
import { Switch, Route, useRouteMatch } from 'react-router-dom';
import TicketSection from '@/blueprint/extensions/{identifier}/sections/TicketSection';
import testpage from '@/blueprint/extensions/{identifier}/sections/TicketConv';


const TicketRouter: React.FC = () => {
const { path } = useRouteMatch();
console.log('Matched path:', path);

return (
<Switch>
{/* List all tickets */}
<Route exact path={path} component={TicketSection} />
{/* View a specific ticket */}
<Route path={`${path}/:ticketId([\\w-]+)`} component={testpage} />
</Switch>
);
};

export default TicketRouter;
import React from 'react';
import { Switch, Route, useRouteMatch } from 'react-router-dom';
import TicketSection from '@/blueprint/extensions/{identifier}/sections/TicketSection';
import testpage from '@/blueprint/extensions/{identifier}/sections/TicketConv';


const TicketRouter: React.FC = () => {
const { path } = useRouteMatch();
console.log('Matched path:', path);

return (
<Switch>
{/* List all tickets */}
<Route exact path={path} component={TicketSection} />
{/* View a specific ticket */}
<Route path={`${path}/:ticketId([\\w-]+)`} component={testpage} />
</Switch>
);
};

export default TicketRouter;
# Template configuration files generally contain the minimum amount of
# options required for functionality. Learn more about options that are
# not listed here on the documentation page linked below.
#
# https://blueprint.zip/docs/?page=documentation/componentsyml

Navigation:
NavigationBar:
AdditionalItems: "elements/NavItem"
Routes:
- { Name: "Ticket", Path: "/tickets", Type: "account", Component: "router/TicketRouter", AdminOnly: "false" }
# Template configuration files generally contain the minimum amount of
# options required for functionality. Learn more about options that are
# not listed here on the documentation page linked below.
#
# https://blueprint.zip/docs/?page=documentation/componentsyml

Navigation:
NavigationBar:
AdditionalItems: "elements/NavItem"
Routes:
- { Name: "Ticket", Path: "/tickets", Type: "account", Component: "router/TicketRouter", AdminOnly: "false" }
5 Replies
! Iron Max
! Iron MaxOP2mo ago
@0x7d8 can u help me out ?
Blueprint
Blueprint2mo ago
Don't do that!
Avoid mentioning staff and/or other members for support.
Sent by prplwtf • byte snippet-ping
! Iron Max
! Iron MaxOP2mo ago
Emma help me with this.... @Emma whenever you are available please check this out.
Jack
Jack2mo ago
You’ve literally just been warned for pinging staff..
! Iron Max
! Iron MaxOP2mo ago
It's been a day, still no response 😢

Did you find this page helpful?