About redirect

Status
Not open for further replies.

Robert9

Well-known member
I have two files in that strange addons credits/shop from Themehouse.

PC/Purchase.php
PC/Product.php

in both we have an action like actionGift and actionBuy;
both finish with

return $this->responseRedirect(XenForo_ControllerResponse_Redirect::SUCCESS, XenForo_Link::buildPublicLink('adcreditshop-purchases'));

one does the redirect, one not. In actionBuy it doesnt matter what you write

return $this->responseRedirect(XenForo_ControllerResponse_Redirect::SUCCESS, XenForo_Link::buildPublicLink('disneyworld'));
will give no error.

May anyone has an idea what could be the problem here?
 
i tried the debbugger on this and found out that
XF/Link public static function buildPublicLink($
is running many times till get finally the right link to redirect.

Is this the normal style? Why have try and error if we pass a link?
 
Status
Not open for further replies.
Top Bottom