Add baseUrl support to router