*bump*
On Wed, Jul 11, 2012 at 2:02 AM, Alec Taylor <[email protected]> wrote: > On Wed, Jul 11, 2012 at 1:40 AM, Anthony <[email protected]> wrote: >> We just made a change to auth.navbar() so the login link is now treated like >> the other links. By default, the URL of the current page the user is on is >> added as a referrer to the query string of the login link (as well as all >> the other navbar links, except logout). After login, the user is >> automatically redirected back to the referring page. This was done to make >> login consistent with the other actions (register, profile, forgot password, >> etc.), as it wasn't clear why it should behave differently. You can also now >> override the referrer behavior for any or all of the navbar links. To limit >> the referrer behavior to a subset of links, just list them in the new >> referrer_actions argument: >> >> auth.navbar(referrer_actions=['register', 'profile', ...]) >> >> To disable the referrers entirely, just set referrer_actions to None. If you >> exclude login from the referrer_actions list, then auth.settings.login_next >> will take effect. >> >> Anyway, why do you always want to redirect users to the profile page every >> time they log in? Are they expected to change their profile regularly? >> >> Anthony > > Hmm, I added that line (`auth.navbar(referrer_actions=['register', > 'profile', 'login'])`) below `auth.settings.login_next = > URL(f='profile')` in db.py, and it changed the way the problem occurs. > > Now #_=_ is no longer appended, /profile/ still works when typed > explicitly, but it doesn't redirect to /profile/. > > When I add that line above the `auth.settings.login_next = > URL(f='profile')` line it also doesn't redirect to /profile/, but now > #_=_ is appended. > > I want the user to be sent to their profile page because: > 1. Initially they will need to fill in fields not taken from Facebook > 2. From then on it will show them which events they have RSVP'd to; > and groups they are a member of > 3. From then on it will also show recommended events and groups > > FYI: I'll be open-sourcing this entire system and pushing it to > Bitbucket when it's a little more polished; i.e.: on or before August > 2 > > How can I get an automatic redirect to the /profile/ page? > > Thanks for all sugestions, > > Alec Taylor

