Bug 5.75: hook _global login_ok can not use absolute URL

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
onoehring
Veteran Member
Posts: 248
Joined: 2019-05-21 22:42
Contact:

Bug 5.75: hook _global login_ok can not use absolute URL

Post by onoehring » 2019-06-13 08:10

Hi,

for tests I tried

Code: Select all

function login_ok($memberInfo, &$args){
return 'https://google.com';
}
All users should be redirected to google ... but - opposite to the explanation in the comments of that function an error occurs:
The requested URL /https://google.com was not found on this server.
Olaf

pböttcher
AppGini Super Hero
AppGini Super Hero
Posts: 525
Joined: 2018-04-01 10:12

Re: Bug 5.75: hook _global login_ok can not use absolute URL

Post by pböttcher » 2019-06-13 08:35

Hi,

the $args feature seems not to be implemented in the login_ok check.

If you need this feature you can call

redirect('https://www.google.com',true);

directly instead of passing the url in the return

onoehring
Veteran Member
Posts: 248
Joined: 2019-05-21 22:42
Contact:

Re: Bug 5.75: hook _global login_ok can not use absolute URL

Post by onoehring » 2019-06-13 09:30

Hi,

I think the error was actualls
/https:/google.com
after the https: was only a single / if I rememeber correct. So strange things going on here.
Rhetorical question: Why not simply redirect to whatever is received?

Olaf

Post Reply