The UrlRedirector was meant to avoid infinite loop by being based on NotFoundHttpException but it's not .
In case of a non-url based multisite, if one accesses a page that's not enabled for one of the sites, they would fall into infinite redirect loop.
I suspect it is also true for entities fetched with custom query (ie: active field).
This bug is critical and needs to be fixed ASAP.
I recommend not using UrlHistoryInterface for now.
The
UrlRedirectorwas meant to avoid infinite loop by being based onNotFoundHttpExceptionbut it's not .In case of a non-url based multisite, if one accesses a page that's not enabled for one of the sites, they would fall into infinite redirect loop.
I suspect it is also true for entities fetched with custom query (ie:
activefield).This bug is critical and needs to be fixed ASAP.
I recommend not using
UrlHistoryInterfacefor now.