Using resolveActionWithIntegerParam(), I am able to get the user_id in the controller fine. However, in the event the username does not match the id, I'd like to redirect to the matching username, much like user profiles do by default. I'm not sure how to go about it.. any ideas?
Edit - Another question:
I have an action that accepts post data from a form in another action. It ends with a redirect response:
return $this->responseRedirect(XenForo_ControllerResponse_Redirect::RESOURCE_CREATED, XenForo_Link::buildPublicLink('hello-world', $visitor), new XenForo_Phrase('helloWorld_the_data_has_been_added_successfully'));