02-19-2017, 10:29 AM
When UserSpice redirect from users/ to usersc/, all GET data is removed.
Is it possible to fix it ?
- Whaxion
Is it possible to fix it ?
- Whaxion
The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
When redirect, GET value disappeared
|
02-19-2017, 10:29 AM
When UserSpice redirect from users/ to usersc/, all GET data is removed.
Is it possible to fix it ? - Whaxion
02-19-2017, 03:06 PM
Actually, I could see where that would be really handy. Let me think through that problem. I'm doing an update on Monday, so I will hopefully have an answer then.
02-19-2017, 03:14 PM
Okay, thanks you
02-19-2017, 06:00 PM
Try replacing your users/includes/header.php with this one and see if it works as you'd want it to.
http://pastebin.com/JEerxWbW There is an extra r=1 in there, just to let you know you were redirected there.
02-19-2017, 07:16 PM
Thanks, you ! It's works ! But if we already have the r=1, another r=1 is added (Idk if this sentence is comprehensible because I'm not native English :/)
02-19-2017, 07:17 PM
Well, yeah. I just made that as a temporary fix.
I am working on a more elegant solution.
02-19-2017, 07:19 PM
Ah okay x) Thanks you
02-19-2017, 07:23 PM
It doesn't seem to have a problem if you have a & in front of the first get variable, so this works too...
if(file_exists($abs_us_root.$us_url_root.'usersc/'.$currentPage)){ if(currentFolder()!= 'usersc'){ $url = $us_url_root.'usersc/'.$currentPage; if(isset($_GET)){ $url .= '?'; //add initial ? foreach ($_GET as $key=>$value){ $url .= '&'.$key.'='.$value; } } } Redirect::to($url); }
02-19-2017, 07:25 PM
Okay, thanks a lot
|