The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
When redirect, GET value disappeared
#1
When UserSpice redirect from users/ to usersc/, all GET data is removed.

Is it possible to fix it ?

- Whaxion
  Reply
#2
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.
  Reply
#3
Okay, thanks you Smile
  Reply
#4
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.

  Reply
#5
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 :/)
  Reply
#6
Well, yeah. I just made that as a temporary fix.

I am working on a more elegant solution.
  Reply
#7
Ah okay x) Thanks you Smile
  Reply
#8
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);
}
  Reply
#9
Okay, thanks a lot Smile
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)