@ory/elements-react 1.0.0-next.27 → 1.0.0-next.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -879,12 +879,8 @@ function useOryFormSubmit(onAfterSubmit) {
879
879
  flowContainer.setFlowContainer(flow);
880
880
  methods.reset(computeDefaultValues(flow.flow.ui.nodes));
881
881
  };
882
- const onRedirect = (url, external) => {
883
- if (external) {
884
- window.location.href = url;
885
- return;
886
- }
887
- window.location.href = url;
882
+ const onRedirect = (url, _external) => {
883
+ window.location.assign(url);
888
884
  };
889
885
  const onSubmit = async (data) => {
890
886
  switch (flowContainer.flowType) {