Skip to content

Commit

Permalink
Fix link when redirecting to newly created project
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bar committed Oct 21, 2024
1 parent 5154eba commit d509860
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { virtualLabMembersAtomFamily } from '@/state/virtual-lab/lab';
import { useUnwrappedValue } from '@/hooks/hooks';
import { useAtom } from '@/state/state';
import { assertErrorMessage, classNames } from '@/util/utils';
import { basePath } from '@/config';

function NewProjectModalFooter({
close,
Expand Down Expand Up @@ -64,7 +63,7 @@ export function NewProjectModal({ virtualLabId }: { virtualLabId: string }) {
const members = useUnwrappedValue(virtualLabMembersAtomFamily(virtualLabId));
const includeMembers = useAtomValue(selectedMembersAtom);
const redirectUrl = (projectId: string) =>
`${basePath}/virtual-lab/lab/${virtualLabId}/project/${projectId}/home`;
`/virtual-lab/lab/${virtualLabId}/project/${projectId}/home`;

const router = useRouter();

Expand Down

0 comments on commit d509860

Please sign in to comment.