issue #560 This shoudl fix the issue of redirection, I'm not happy since I'm not fully sure this is the fix (I tested it and it worked), but well, im not sure