This commit is contained in:
Talha Mansoor 2017-04-15 22:46:34 +00:00 committed by GitHub
commit a1f80797ad

View file

@ -261,6 +261,11 @@ class Content(object):
self.get_relative_source_path())
origin = '/'.join((siteurl, linked_content.url))
origin = origin.replace('\\', '/') # for Windows paths.
elif path.replace('%20', ' ') in self._context['filenames']:
path_with_spaces = path.replace('%20', ' ')
origin = '/'.join((siteurl,
self._context['filenames'][path_with_spaces].url))
origin = origin.replace('\\', '/') # for Windows paths.
else:
logger.warning(
"Unable to find '%s', skipping url replacement.",