From the documentation of url we can see that path always stars with / which means that paths[0] is always empty, so we just skip it. I don't know if we need to check if paths.len() is nonzero, but that was also an issue before, so I didn't introduce new issues.
From the documentation of url we can see that path always stars with / which means that paths[0] is always empty, so we just skip it. I don't know if we need to check if paths.len() is nonzero, but that was also an issue before, so I didn't introduce new issues.