We have a multi-level multi-tenant application, where the hostname identifies the 'supplier' account, but the customer account is actually part of the URL.
For instance, we have routes set up as follows:
/:locale/app/:customer_id/invoices
Run Code Online (Sandbox Code Playgroud)
At the top of the page, we have a drop down with all customer ID's the user has access to. The idea basically is that when a user changes the customer, the route changes from /nl/app/4/invoices to /nl/app/5/invoicesfor instance. So basically what I want to do …