[Bb-trac] Re: [bbPress] #803: bbPress should redirect after login back to previous forum/topic

bbPress bb-trac at lists.bbpress.org
Tue Mar 4 21:59:59 GMT 2008


#803: bbPress should redirect after login back to previous forum/topic
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |        Owner:       
     Type:  enhancement  |       Status:  new  
 Priority:  low          |    Milestone:  0.8.4
Component:  Front-end    |      Version:       
 Severity:  minor        |   Resolution:       
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by _ck_):

  * summary:  bbPress should support redirect_to on login like WordPress =>
              bbPress should redirect after login back to
              previous forum/topic

Comment:

 Oh nevermind me, I'm an idiot.
 Though it did take a little bit of code study to figure out the magic
 combo of what will cause a proper direct. Seems these two fields have to
 be filled out like so:

 {{{
 <input type="hidden" name="re" value="<?php echo
 "http://".$_SERVER['HTTP_HOST'].$_SERVER["REQUEST_URI"]; ?>" />
 <input type="hidden" name="_wp_http_referer" value="<?php echo
 bb_get_option( 'uri' ) ?>" />
 }}}

 Currently investigating if there is a more proper way to get the current
 url for "re".

 Might consider putting something like this into the default 0.8.4
 login.php template?

-- 
Ticket URL: <http://trac.bbpress.org/ticket/803#comment:2>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list