Redirecting to home after switching tenants from private to custom tenants

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 2.17.1

Describe the issue:
The issue is not concerning, but it would be better if it were solved. Currently, my issue in the OpenSearch dashboard is that I changed the opensearch_dashboard.yml file entry for server.defaultRoute:

server.defaultRoute: /app/home#/feature_directory

It redirects to this path after logging into the OpenSearch dashboard. My tenant is set to private now, but if I switch the tenant from private to a custom tenant, I am redirected to the home page instead of the above-mentioned default route path, /feature_directory. Likewise, if I switch from custom tenants back to private.