[Loris-dev] header redirect
David MacFarlane, Mr
david.macfarlane2 at mcgill.ca
Thu Aug 10 11:43:28 EDT 2017
The location HTTP header doesn't take quotation marks. The single quote at the start is likely causing the browser to treat it as a relative link.
Try:
header("Location: $actual_link");
________________________________
From: loris-dev-bounces at bic.mni.mcgill.ca <loris-dev-bounces at bic.mni.mcgill.ca> on behalf of Tom Beaudry <waveflux at gmail.com>
Sent: August 10, 2017 11:39:25 AM
To: loris-dev at bic.mni.mcgill.ca
Subject: [Loris-dev] header redirect
Hi Guys,
I am trying to do a redirect on my instrument (after the save button has been clicked), and it doesn't work. I am guessing there are some redirect rules somewhere else that are affecting what I'm trying to do.
My code is the follows:
$actual_link = "https://loris.loris.ca/main.php?test_name=E4_Data" . $endOfURL;
header("Location: '$actual_link'");
I then get redirected to this instead:
http://loris.concordia.ca/E4_Data/'https:/loris.loris.ca/main.php/?test_name=E4_Data&candID=936829&sessionID=53&commentID=936829PER0002531241502311230%27
Any help would be greatly appreciated,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20170810/1291f7e6/attachment.html>
More information about the Loris-dev
mailing list