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

feat: option to customize the skipped link relation types #180

Closed

Conversation

nkuehn
Copy link

@nkuehn nkuehn commented Sep 24, 2020

closes #175


Hi,

since the last idea in #175 turned out to be relatively simple to implement, here's a try on it. What do you think?

Nitpick: It includes a small change to the default behavior, too - expanding the "rel" filtering to all tags that are specified to support "rel" means that if someone really uses <a href="foo" rel="prefetch" >... in their code that would now be ignored in the defaults. But since that is nonfunctional pointless HTML it's not specifically worrying me. In a very strict interpretation of semantic versioning it could be considered a breaking change though - if that's the case I would roll it back to just apply to link tags.

@nkuehn
Copy link
Author

nkuehn commented Nov 24, 2020

@JustinBeckwith It would be great to get feedback on the approach, at least whether the general idea is a candidate to merge or not (it's blocking an issue we would have to approach otherwise once we know about whether it can be done in linkinator or not). Thanks !

Base automatically changed from master to main January 22, 2021 23:22
@nkuehn
Copy link
Author

nkuehn commented Nov 30, 2021

Closing this due to lack of any feedback - would have to be restarted anyways from scratch.

We're solving the problem using the new URL rewriting CLI feature now (rewriting the prod domain in the canonical header to the preview domain) but it's not ideal - we're not detecting accidental absolute links to the prod domain any more this way.

@nkuehn nkuehn closed this Nov 30, 2021
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.

Allow skipping rel=canonical links (via config or built-in)
2 participants