Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(site): fix template editor route
  • Loading branch information
BrunoQuaresma committed Dec 6, 2023
commit 0ba1b742cfa0f187e45f74d17fecb1c4f43b3d20
10 changes: 5 additions & 5 deletions site/src/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ export const AppRouter: FC = () => {
<Route path="versions">
<Route path=":version">
<Route index element={<TemplateVersionPage />} />
<Route
path="edit"
element={<TemplateVersionEditorPage />}
/>
</Route>
</Route>
</Route>
Expand Down Expand Up @@ -378,7 +374,11 @@ export const AppRouter: FC = () => {
<Route path="*" element={<NotFoundPage />} />
</Route>

{/* Terminal and CLI auth pages don't have the dashboard layout */}
{/* Pages that don't have the dashboard layout */}
<Route
path="/templates/:template/versions/:version/edit"
element={<TemplateVersionEditorPage />}
/>
<Route
path="/:username/:workspace/terminal"
element={<TerminalPage />}
Expand Down