In Subscription Manager (http://your_site.com/member/edit_subscriptions)
All lists of subscription get’s url like :
http://your_site.com/?URL=http://your_site.com/forums/viewthread/9877/
but after clicking on above link it gives 404 error.
After digging I found some bug in Redirect.php and prepared a patch for it.
I applied following patch inside system folder in order to fix this.
--- expressionengine/libraries/Redirect.php.orig
+++ expressionengine/libraries/Redirect.php
@@ -38,6 +38,7 @@
$host = ( ! isset($_SERVER['HTTP_HOST'])) ? '' : (substr($_SERVER['HTTP_HOST'],0,4) == 'www.' ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST']);
+include_once(APPPATH.'../codeigniter/system/core/Common.php');
$force_redirect = ($request_type != 'CP' && config_item('force_redirect') == TRUE) ? TRUE: FALSE;
if ($force_redirect == TRUE OR ( ! isset($_SERVER['HTTP_REFERER']) OR ! stristr($_SERVER['HTTP_REFERER'], $host)))Should I report it as a bug ?
OR
Is there some other workaround I am missing ?