Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds domain whitelisting functionality for content links, allowing configuration of SEO-friendly link attributes based on whether domains are whitelisted. The feature enables automatic addition of nofollow and noindex attributes to non-whitelisted external links in paragraph content, while allowing custom rel attributes for whitelisted domains.
Changes:
- New
SeoLinkHelpermodule to process HTML links and apply rel attributes based on domain whitelist configuration - Configuration schema additions in
SEOWebsitesConfigfor domain whitelist settings - Integration of link processing in
ParagraphBlockcomponent after link replacement - Version bump from 4.4.3 to 4.5.0 (appropriate for a minor feature addition)
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| src/helpers/SeoLinkHelper.ts | New helper module that processes HTML anchor tags, checks domains against whitelist, and applies appropriate rel attributes |
| src/helpers/ConfigHelper.ts | Added ConfigHelper_getContentLinksConfig function to retrieve content links configuration |
| src/configs/SEOWebsitesConfig.ts | Added configuration schema for contentLinks including domain whitelist and rel attribute settings |
| src/components/widgets/Story/StoryContent/StoryContentBlocks/ParagraphBlock.astro | Integrated SeoLinkHelper processing after LinkReplacerHelper |
| package.json | Version bumped to 4.5.0 for minor feature addition |
src/components/widgets/Story/StoryContent/StoryContentBlocks/ParagraphBlock.astro
Outdated
Show resolved
Hide resolved
src/components/widgets/Story/StoryContent/StoryContentBlocks/UnorderedListBlock.astro
Outdated
Show resolved
Hide resolved
src/components/widgets/Story/StoryContent/StoryContentBlocks/UnorderedListBlock.astro
Outdated
Show resolved
Hide resolved
src/components/widgets/Story/StoryContent/StoryContentBlocks/OrderedListBlock.astro
Outdated
Show resolved
Hide resolved
src/components/widgets/Story/StoryContent/StoryContentBlocks/OrderedListBlock.astro
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.