diff --git a/client/src/components/Login/RegisterForm.vue b/client/src/components/Login/RegisterForm.vue index 25546ed46804..0bf0ef8c3861 100644 --- a/client/src/components/Login/RegisterForm.vue +++ b/client/src/components/Login/RegisterForm.vue @@ -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.");