Since management of API tokens can be accessed via two routes, this adds tracking and handling to reutrn the user to the correct place.