Create shouldRedirectToDashboard to merge redirect pages conditions