View Issue Details

IDProjectCategoryView StatusLast Update
0002710Composrcorepublic2016-07-17 14:42
ReporterChris GrahamAssigned ToChris Graham 
SeverityFeature-request 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0002710: Add get_login_url function
DescriptionWe 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.
TagsNo tags attached.
Time estimation (hours)0.5
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-07-12 22:16 Chris Graham New Issue
2016-07-17 14:42 Chris Graham Status non-assigned => resolved
2016-07-17 14:42 Chris Graham Resolution open => fixed
2016-07-17 14:42 Chris Graham Assigned To => Chris Graham