Jump to content
  • 0

How can I control the redirect of pages? [Fluxcp]


Diana

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

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 Diana
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

@Akkarin I only want to know how to change the redirect from ?module=account to something else like ?module=account&action=userlogin

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

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 ??

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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();

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.03
  • Content Count:  188
  • Reputation:   3
  • Joined:  12/17/16
  • Last Seen:  

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??

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...