Ignore:
Timestamp:
Mar 11, 2011, 1:42:05 PM (12 years ago)
Author:
work@…
Message:
  • added initial support of a return URI; not working properly though...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BaseFilters.groovy

    r1615 r1626  
    4646                                        session.removeAttribute('loggedInUser')
    4747
     48                                        def returnURI = request.requestURL.toString().replace(".dispatch","").replace("/grails/","/") + '?' + request.queryString
     49
    4850                                        // and redirect to login page
    49                                         redirect(controller: 'login', action: 'auth')
     51                                        redirect(controller: 'login', action: 'auth', params: [returnURI: returnURI, referer: request.getHeader('referer')] )
    5052                                }
    5153                        }
Note: See TracChangeset for help on using the changeset viewer.