Skip to content

Commit

Permalink
Fixed redirect issue in RegisterForm.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Adil Mohiuddin <[email protected]>
  • Loading branch information
mcuaya1 and advilm committed Sep 9, 2024
1 parent a7fe1d0 commit 8d24350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Login/RegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function submit() {
Toast.info(response.data.message);
}
window.location.href = props.redirect || withPrefix("/");
window.location.href = props.redirect ? withPrefix(props.redirect) : withPrefix("/");
} catch (error: any) {
disableCreate.value = false;
messageText.value = errorMessageAsString(error, "Registration failed for an unknown reason.");
Expand Down

0 comments on commit 8d24350

Please sign in to comment.