[4.x] TenancyUrlGenerator: override toRoute(), refactor
#1439
+84
−29
toRoute(), refactor
#1439