Development > Fixed or Bogus Bugs
Custom pages redirect on BoardIndex on Login
(1/1)
♦ Ninja ZX-10RR ♦:
If you visit a custom page accessible to public and then try to login from there, they will redirect you to the board index no matter what you do.
Ref: http://simpleportal.net/index.php?topic=14156.msg70513#msg70513
--- Quote from: Sayaka Maizono on October 27, 2015, 06:28:39 PM ---The reason for this behavior is because custom pages do not have login_url set.
You can do change this behavior by opening /Sources/PortalPages.php
Find:
--- Code: --- $page_id = !empty($_REQUEST['page']) ? $_REQUEST['page'] : 0;
--- End code ---
Replace with:
--- Code: --- $page_id = !empty($_REQUEST['page']) ? $_REQUEST['page'] : 0;
$_SESSION['login_url'] = $scripturl . '?page=' . $page_id;
--- End code ---
--- End quote ---
That one fixes it. Adding to the bug tracker and marking it as solved as per the board rules.
emanuele:
I hate the $_SESSION['login_url'] sooooooo much!
♦ Ninja ZX-10RR ♦:
Hmm yeah have a look and see if it's present in ElkArte version as well, because more than likely, it is.
Navigation
[0] Message Index
Go to full version