Skip to content

Commit

Permalink
Merge pull request #18786 from mcuaya1/register_form_component_issue_…
Browse files Browse the repository at this point in the history
…release_24.1
  • Loading branch information
ahmedhamidawan authored Sep 10, 2024
2 parents a7fe1d0 + 8d24350 commit a5da8ac
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 a5da8ac

Please sign in to comment.