Always redirect to the form for more convenience when editing
This commit is contained in:
		
							parent
							
								
									17d66dd419
								
							
						
					
					
						commit
						4daddb822f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -154,7 +154,7 @@ Comment.prototype.edit_action = function() {
 | 
			
		|||
      this.update(req.postParams);
 | 
			
		||||
      delete session.data.backup;
 | 
			
		||||
      res.message = gettext('The comment was successfully updated.');;
 | 
			
		||||
      res.redirect(this.story.href() + '#' + this._id);
 | 
			
		||||
      res.redirect(this.href(req.action));
 | 
			
		||||
    } catch (ex) {
 | 
			
		||||
      res.message = ex;
 | 
			
		||||
      app.log(ex);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue