Diana Posted August 17, 2017 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Share 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 Link to comment Share on other sites More sharing options...
0 Akkarin Posted August 17, 2017 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share 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 Link to comment Share on other sites More sharing options...
0 Diana Posted August 17, 2017 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share 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 Link to comment Share on other sites More sharing options...
0 Akkarin Posted August 17, 2017 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share 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 Link to comment Share on other sites More sharing options...
0 Diana Posted August 17, 2017 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share 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 Link to comment Share on other sites More sharing options...
0 Akkarin Posted August 17, 2017 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share 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 Link to comment Share on other sites More sharing options...
0 Diana Posted August 17, 2017 Group: Members Topic Count: 85 Topics Per Day: 0.03 Content Count: 194 Reputation: 3 Joined: 12/17/16 Last Seen: April 1 Author Share 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 Link to comment Share on other sites More sharing options...
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 DianaLink to comment
Share on other sites
6 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.