View Issue Details

IDProjectCategoryView StatusLast Update
2710Composrcorepublic2016-07-17 14:42
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary2710: 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.
Attach Tags
Time estimation (hours)0.5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

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 Not Assigned => Resolved
2016-07-17 14:42 Chris Graham Resolution open => fixed
2016-07-17 14:42 Chris Graham Assigned To => Chris Graham