• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Cannot reproduce Unable to change $extraParams in route prefix

Jon W

Well-known member
In the buildLink function in route prefixes, the $extraParams variable is passed by reference, but it doesn't actually appear to be able to be changed.

It would be nice to be able to add/remove parameters from $extraParams in the route prefix. I assume this was the intention? If not, please move to suggestions.


Well-known member
Unless this has changed I use $extraParams in the route to send extra data to my controller: $extraParams['mydata'] = xxxxx
return XenForo_Link::buildBasicLinkWithStringParam($outputPrefix, $action, $extension, $data, 'some_id', $extraParams);

Then in the controllerPublic: $myData = $this->_input->filterSingle('mydata', XenForo_Input::STRING);


XenForo developer
Staff member
I can't reproduce this. I added this to the thread prefix builder:
$extraParams['extra'] = 1;
And all thread links had ?extra=1 appended.