Fixes routes to have the correct root