template: use url_for() to create download file url
This commit is contained in:
		
							parent
							
								
									50a7385716
								
							
						
					
					
						commit
						965f0da2bb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -5,7 +5,7 @@
 | 
				
			||||||
{% block head %}
 | 
					{% block head %}
 | 
				
			||||||
    {{ super() }}
 | 
					    {{ super() }}
 | 
				
			||||||
    {% if filename is defined %}
 | 
					    {% if filename is defined %}
 | 
				
			||||||
        <meta http-equiv="refresh" content="0;URL='download_file/{{ filename }}'" />
 | 
					    <meta http-equiv="refresh" content="0;URL='{{ url_for('download_file', filename=filename) }}'" />
 | 
				
			||||||
    {% endif %}
 | 
					    {% endif %}
 | 
				
			||||||
    <link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
 | 
					    <link href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
 | 
				
			||||||
{% endblock %}
 | 
					{% endblock %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue