Open arthurattwell opened 9 years ago
No problem doing that, but it does leave the user in an infinite loop. Should I not rather give an error right at the beginning if you go to betterquiz without a redirect, OR have a default redirect back to bettercare? (so if you forget the URL, the user will be returned to the home page of bettercare, from whence they can at least find their way back to wherever they were...)?
C
On 2015/07/15 10:22 AM, Arthur Attwell wrote:
Right now, when a user is finished a test, the starting URL must provide a redirect for when they are finished, for |done.php|. However, in the event that no redirect URL was supplied, |done.php| says: "We don't have a redirect site: nowhere to go home to."
Instead, can we set a default/fallback redirect back to the starting URL of the quiz? E.g. |http://quiz.bettercare.co.za/quiz.php?qz=1|.
This is mainly in case we provide a URL to a user without a redirect for some reason (e.g. human error when creating the link).
— Reply to this email directly or view it on GitHub https://github.com/electricbookworks/betterquiz/issues/2.
The quiz will mostly be running in an iframe (at least that's the plan), so redirecting to the main Bettercare site may look odd to users.
If I'm not overcomplicating this, could we detect whether we're in an iframe and:
Unless I'm missing something, which is often the case :)
I've now got a default redirect in our setup, which at least on our Bettercare Learning Station will always ensure a redirect URL (to http://quiz.bettercare.co.za/login_form.php?qz={ID}
).
So this is not a critical issue.
Right now, when a user is finished a test, the starting URL must provide a redirect for when they are finished, for
done.php
. However, in the event that no redirect URL was supplied,done.php
says: "We don't have a redirect site: nowhere to go home to."Instead, can we set a default/fallback redirect back to the starting URL of the quiz? E.g.
http://quiz.bettercare.co.za/quiz.php?qz=1
.This is mainly in case we provide a URL to a user without a redirect for some reason (e.g. human error when creating the link).