Removed dev. from being removed when routing to a tenant

Fixed #184