Fixed a bug where clicking the link for an updated note in an RSS feed did not properly redirect to that note after login.
This commit is contained in:
parent
3c7394c686
commit
d8c58e5f5d
4
NEWS
4
NEWS
|
@ -1,3 +1,7 @@
|
|||
1.4.18: ???
|
||||
* Fixed a bug where clicking the link for an updated note in an RSS feed did
|
||||
not properly redirect to that note after login.
|
||||
|
||||
1.4.17: July 24, 2008:
|
||||
* Updated the product tour with an analogy to index cards.
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ def grab_user_id( function ):
|
|||
if cherrypy.session.get( "user_id" ) is None and cherrypy.request.method == "GET":
|
||||
original_path = cherrypy.request.path + \
|
||||
( cherrypy.request.query_string and u"?%s" % cherrypy.request.query_string or "" )
|
||||
raise cherrypy.HTTPRedirect( u"/login?after_login=%s" % urllib.quote( original_path ) )
|
||||
raise cherrypy.HTTPRedirect( u"%s/login?after_login=%s" % ( cherrypy.request.base, urllib.quote( original_path ) ) )
|
||||
else:
|
||||
raise
|
||||
|
||||
|
|
|
@ -1544,6 +1544,7 @@ Wiki.prototype.submit_form = function ( form ) {
|
|||
args[ "yearly" ] = this.yearly;
|
||||
} else if ( url == "/users/login" ) {
|
||||
args[ "invite_id" ] = this.invite_id;
|
||||
args[ "after_login" ] = this.after_login;
|
||||
} else if ( url == "/users/send_invites" ) {
|
||||
callback = function ( result ) {
|
||||
if ( !result.invites ) return;
|
||||
|
|
Reference in New Issue