Skip to content

Commit

Permalink
More #1776
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 1, 2015
1 parent 4108cde commit 1a80c80
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nikola/plugins/command/check.py
Expand Up @@ -236,9 +236,12 @@ def analyze(self, fname, find_sources=False, check_remote=False):
continue

if url_type == 'rel_path':
target = target.lstrip('/')
target_filename = os.path.abspath(
os.path.join(os.path.dirname(filename), unquote(target)))
if target.startswith('/'):
target_filename = os.path.abspath(
os.path.join(os.path.dirname(filename), unquote(target.lstrip('/')))
else: # Relative path
target_filename = os.path.abspath(
os.path.join(os.path.dirname(filename), unquote(target)))

elif url_type in ('full_path', 'absolute'):
if url_type == 'absolute':
Expand Down

0 comments on commit 1a80c80

Please sign in to comment.