Fixed routing issue whereby first-level paths were read as search parameters