#2710 - Add get_login_url function
| Identifier | #2710 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Add get_login_url function |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | core |
| Description | We have a code pattern occurring a few times like...
if (has_interesting_post_fields() || (get_page_name() == 'join') || (get_page_name() == 'login') || (get_page_name() == 'lost_password')) { $_this_url = build_url(array('page' => ''), '_SELF', array('keep_session' => 1, 'redirect' => 1)); } else { $_this_url = build_url(array('page' => '_SELF'), '_SELF', array('keep_session' => 1, 'redirect' => 1), true); } This should be replaced with a function call. The actual fallback page should be configurable via an optional override parameter to the function. E.g. the main_member_bar block may fall-back to redirecting to the forum after logging in. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
There have been no comments yet