mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fixes #1143, spaces in filename links
This commit is contained in:
parent
6b808b2faa
commit
c5178238d0
1 changed files with 4 additions and 0 deletions
|
|
@ -213,6 +213,10 @@ class Content(object):
|
|||
os.path.join(self.relative_dir, path)
|
||||
)
|
||||
|
||||
# spaces in filename
|
||||
if path not in self._context['filenames'] and '%20' in path:
|
||||
path = path.replace('%20', ' ')
|
||||
|
||||
if path in self._context['filenames']:
|
||||
origin = '/'.join((siteurl,
|
||||
self._context['filenames'][path].url))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue