Onimua
Well-known member
I've created a form that submits to the database, and everything works fine as you'd expect. The problem occurs in the redirect portion of the code.
The redirect takes me to whiteboard/view-message as I'd expect, and the template loads fine but it doesn't have what I'm expecting to see, which is whiteboard/view-message/title-here.25. Is there something missing that I can't find? I tried searching but didn't find anything that really made it clear.
I am submitting the data to a separate table within the XF database if that makes a difference.
PHP:
$newMessage = $writer->getMergedData();
$return = XenForo_Link::buildPublicLink('whiteboard/view-message', $newMessage);
return $this->responseRedirect(
XenForo_ControllerResponse_Redirect::SUCCESS,
$return,
new XenForo_Phrase('your_message_has_been_posted')
);
The redirect takes me to whiteboard/view-message as I'd expect, and the template loads fine but it doesn't have what I'm expecting to see, which is whiteboard/view-message/title-here.25. Is there something missing that I can't find? I tried searching but didn't find anything that really made it clear.
I am submitting the data to a separate table within the XF database if that makes a difference.