Diana Posted August 17, 2017 Posted August 17, 2017 (edited) Please , How can I manage the redirect urls like when I type : localhost/cp/?module=account it redirect me to : localhost/cp/?module=account&action=login can i edit that to redirect from localhost/cp/?module=account to localhost/cp/?module=account&action=userlogin ( I know that i must edit the page in themes and modules and i already edited it but flux still not redirecting me to the new page ) Edited August 17, 2017 by Diana Quote
0 Akkarin Posted August 17, 2017 Posted August 17, 2017 Why would you need to redirect to a different page? If you want something else to be displayed on the login page (extra info?) you can copy the current data from /themes/default/account/login.php and paste it to /themes/<your custom theme>/account/login.php and then add whatever you need. Quote
0 Diana Posted August 17, 2017 Author Posted August 17, 2017 @Akkarin I only want to know how to change the redirect from ?module=account to something else like ?module=account&action=userlogin Quote
0 Akkarin Posted August 17, 2017 Posted August 17, 2017 1 minute ago, Diana said: @Akkarin I only want to know how to change the redirect from ?module=account to something else like ?module=account&action=userlogin The redirects are automatic anyway o.O I'm still confused on why you'd need to change the redirects. Quote
0 Diana Posted August 17, 2017 Author Posted August 17, 2017 Only want to know how it can be ,, And Okay it's automatic anyway but i think there is a file that understand if i entered only " ?module=account " it must redirect me to ?module=account&action=login ?? Quote
0 Akkarin Posted August 17, 2017 Posted August 17, 2017 The redirects are positioned in the /module/<module_name>/<action_name>.php files. e.g. https://github.com/rathena/FluxCP/blob/master/modules/account/index.php It's controlled by the following line: $this->loginRequired(); Quote
0 Diana Posted August 17, 2017 Author Posted August 17, 2017 Okay , from $this->loginRequired(); and when i want to make it redirect to userlogin not to login what i should add or edit in this line?? Quote
Question
Diana
Please , How can I manage the redirect urls
like when I type : localhost/cp/?module=account it redirect me to : localhost/cp/?module=account&action=login
can i edit that to redirect from localhost/cp/?module=account to localhost/cp/?module=account&action=userlogin
( I know that i must edit the page in themes and modules and i already edited it but flux still not redirecting me to the new page )
Edited by Diana6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.