Use *actual* current URL for user feedback msg
was using current URL as of page load, but #hash can change after that, e.g. on profile view
This commit is contained in:
		
							parent
							
								
									0d97ff2936
								
							
						
					
					
						commit
						c38dc8b842
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -12,6 +12,7 @@ let FeedbackForm = { | |||
|         }, | ||||
| 
 | ||||
|         showFeedback() { | ||||
|             this.referrer = location.href | ||||
|             this.showDialog = true | ||||
|             this.$nextTick(function() { | ||||
|                 this.$refs.textarea.focus() | ||||
|  |  | |||
|  | @ -485,6 +485,7 @@ | |||
| 
 | ||||
|   ${page_help.render_template()} | ||||
| 
 | ||||
|   % if request.has_perm('common.feedback'): | ||||
|   <script type="text/x-template" id="feedback-template"> | ||||
|     <div> | ||||
| 
 | ||||
|  | @ -570,6 +571,7 @@ | |||
| 
 | ||||
|     </div> | ||||
|   </script> | ||||
|   % endif | ||||
| 
 | ||||
|   ${tailbone_autocomplete_template()} | ||||
|   ${multi_file_upload.render_template()} | ||||
|  | @ -882,8 +884,6 @@ | |||
| <%def name="modify_whole_page_vars()"> | ||||
|   <script type="text/javascript"> | ||||
| 
 | ||||
|     FeedbackFormData.referrer = location.href | ||||
| 
 | ||||
|     % if request.user: | ||||
|     FeedbackFormData.userUUID = ${json.dumps(request.user.uuid)|n} | ||||
|     FeedbackFormData.userName = ${json.dumps(six.text_type(request.user))|n} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar