Given a certain requested path, return either a corrected path to redirect to or the tokenized path.
This code corrects for the following issues: