Permalink
Browse files

More #1776

  • Loading branch information...
ralsina committed Jun 1, 2015
1 parent 4108cde commit 1a80c8089c799e8a97743241cfb65d6cba268579
Showing with 6 additions and 3 deletions.
  1. +6 −3 nikola/plugins/command/check.py
@@ -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':

0 comments on commit 1a80c80

Please sign in to comment.