Skip to content

fix: Redirect to workspaces page after creation #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 17, 2022
Merged
Changes from 1 commit
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
Next Next commit
fix: Redirect to workspaces page after creation
  • Loading branch information
bryphe-coder committed Feb 17, 2022
commit a3cb43ecc0f4fffe91ce42edc9382530fa8dd512
2 changes: 1 addition & 1 deletion site/pages/projects/[organization]/[project]/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CreateWorkspacePage: React.FC = () => {

const onSubmit = async (req: API.CreateWorkspaceRequest) => {
const workspace = await API.Workspace.create(req)
await router.push(`/workspaces/${workspace.id}`)
await router.push(`/workspaces/me/${workspace.name}`)
return workspace
}

Expand Down