Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to show redirected links #54

Merged
merged 2 commits into from
Aug 25, 2020
Merged

Conversation

emielbeinema
Copy link
Contributor

In some cases it can be useful to list all links that don't directly point at their target, but instead contain a (chain of) redirect(s). This PR proposes the inclusion of a flag that does exactly that.

I'm not quite familiar with Dart or this project, so if there's anything I can do to improve this PR, please let me know!

@filiph
Copy link
Owner

filiph commented Aug 25, 2020

This is great, thanks for the contribution!

@filiph filiph merged commit 4cc296c into filiph:master Aug 25, 2020
@emielbeinema emielbeinema deleted the show-redirects branch September 1, 2020 20:50
nfagerlund added a commit to nfagerlund/linkcheck that referenced this pull request Jan 22, 2021
PR filiph#54 added a `--show-redirects` flag! But although it adds a redirects count
to the summary, it won't show the details about WHICH links were redirected
unless there was *also* at least one error or warning. So if you want to
actually update your redirected links, you need to temporarily break an
unrelated link first. 😆

This commit adds "they requested redirects, and there was at least one redirect"
to the list of conditions that can trigger a full report.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants