GoogleChrome / GoogleChrome/webdev-infra

Warn of detected absolute URLs while scanning build output via UrlCrawl

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
39
Forks
29
PR merge metrics
No merged PRs in 30d

Description

PR #58 will introduce a UrlCrawl class/functionality that finds broken URLs. As a later feature, this class should also be able to find absolute URLs and print those as part of the final output.

Currently the output of failing HREFs prints as the following (note the first path is not actually the value of the href, absolute URLs are always displayed):
```
404 Not Found a[href="/tutorials/webgl/webgl_fundamentals/"] @ /webgl-transforms/
```

The detected absolute URLs could display along the lines of:
```
[!] Absolute a[href="/tutorials/webgl/webgl_fundamentals/"] @ /webgl-transforms/
```

Finally, this functionality ideally would be toggleable using a UrlCrawl option such as `shouldWarnAbsolute`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.