1
I did a search in the forum but did not see such a topic.
I have a members only page of photo album (myalbum) that was hand-coded to my own block in the homepage with the specific URL;
say it's
..../modules/myalbum/viewcat.php?cid=3&orderby=dateA
when user trys to access this link, if he/she is not logged in, they are supposed to see the user log-in page (user.php) and is ready to redirect to that page after log-in.
Here come the problem:
the URL in the user.php page only trim to the .php, not the parameters, it's -
/user.php?xoops_redirect=%2Fmodules%2Fmyalbum%2Fviewcat.php
so even the user logged in, they are pointed to nowhere.
I checked the code in user.php
Quote:
if (isset($HTTP_GET_VARS['xoops_redirect'])) {
$xoopsTpl->assign('redirect_page', htmlspecialchars(trim($HTTP_GET_VARS['xoops_redirect']), ENT_QUOTES));
but where is the problem?
Is this a bug or just a nature of this Xoops-redirect?
Thanks in advanced.