strip the ending slash for static_url_path
This commit is contained in:
parent
ef27c1b749
commit
d4076cf07c
3 changed files with 14 additions and 1 deletions
|
|
@ -1013,7 +1013,7 @@ class _PackageBoundObject(object):
|
|||
return self._static_url_path
|
||||
|
||||
if self.static_folder is not None:
|
||||
basename = os.path.basename(self.static_folder)
|
||||
basename = os.path.basename(self.static_folder.rstrip("/"))
|
||||
return ("/" + basename).rstrip("/")
|
||||
|
||||
@static_url_path.setter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue