Hi,
I'm new with this. Just installed the version 4.2 of Userspice.
When I log in, I'm redirected to users/account.php, but that's not what I want. I want to be redirected to the page I landed on.
Does anyone know what I should change in my config?
Kind regards,
nessinits
Yep. Go to usersc/scripts/custom_login_script.php
You can edit wherever your user goes after login.
Thanks for the answer, but I've changed it into
Redirect::to($us_url_root."/");
But it doesn't work.
Nope, still doesn't have any effect and I'm really working with a clean install.
So that would be
Redirect::to($us_url_root.'users/admin.php');
The idea of formatting things like that is that you want the script to work regardless of where it's being called from, so by going relative to your root (that z_us_root.php file), you sort of have this anchor so the code always knows where it's at. I hope that makes sense.
It does make sense, but it's not working properly. I've copied your line, pasted into the custom script and bang: back to account.php.
It makes my laugh. ;-)
mudmin, thanks for the support so far.
I've used the line of code used on hastebin.com. It still didn't work.
I've tried the script did_not_have_permissions.php. It still didn't ended on account.php.
I'm having a great Saturdayafternoon here. ;-)