witten
/
luminotes
Archived
1
0
Fork 0

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:
Dan Helfman 2008-07-25 17:05:13 -07:00
parent 3c7394c686
commit d8c58e5f5d
3 changed files with 6 additions and 1 deletions

4
NEWS
View File

@ -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.

View File

@ -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

View File

@ -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;