@tanstack/router-core 1.136.13 → 1.136.14

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.
@@ -1068,9 +1068,13 @@ class RouterCore {
1068
1068
  strictParseParams(strictParams)
1069
1069
  );
1070
1070
  } catch (err) {
1071
- paramsError = new PathParamError(err.message, {
1072
- cause: err
1073
- });
1071
+ if (notFound.isNotFound(err) || redirect.isRedirect(err)) {
1072
+ paramsError = err;
1073
+ } else {
1074
+ paramsError = new PathParamError(err.message, {
1075
+ cause: err
1076
+ });
1077
+ }
1074
1078
  if (opts?.throwOnError) {
1075
1079
  throw paramsError;
1076
1080
  }