This commit is contained in:
@@ -60,7 +60,8 @@ def main():
|
||||
|
||||
url = urlsplit(value)
|
||||
if url.scheme or url.netloc:
|
||||
errors.append(f"{page.name}: remote dependency in {attribute}: {value}")
|
||||
if attribute != "href":
|
||||
errors.append(f"{page.name}: remote dependency in {attribute}: {value}")
|
||||
continue
|
||||
if url.path.startswith("/"):
|
||||
errors.append(f"{page.name}: root-absolute path breaks project Pages: {value}")
|
||||
|
||||
Reference in New Issue
Block a user