fix(react-utilities): Add referrerPolicy to anchor native props whitelist - #35447
Merged
Dmytro Kirpa (dmytrokirpa) merged 5 commits intoNov 4, 2025
Conversation
Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com>
Contributor
|
Copilot generate a change file using the |
Copilot
AI
changed the title
[WIP] [Bug]: The
Nov 3, 2025
referrerPolicy property of the Link component is not working
Dmytro Kirpa (dmytrokirpa)
marked this pull request as ready for review
November 3, 2025 16:44
…-40b1-a230-1cc30cd3dcfd
Dmytro Kirpa (dmytrokirpa)
approved these changes
Nov 3, 2025
Dmytro Kirpa (dmytrokirpa)
enabled auto-merge (squash)
November 3, 2025 19:27
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
Martin Hochel (Hotell)
approved these changes
Nov 4, 2025
Dmytro Kirpa (dmytrokirpa)
deleted the
copilot/fix-6154722-60537144-7d1fb147-17f1-40b1-a230-1cc30cd3dcfd
branch
December 4, 2025 09:46
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
…list (microsoft#35447) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: dmytrokirpa <1492102+dmytrokirpa@users.noreply.github.com> Co-authored-by: Dmytro Kirpa <dmytrokirpa@microsoft.com>
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.

Fix for referrerPolicy attribute issue in Link component ✅
Issue: The
referrerPolicyproperty of the Link component was not being applied to the rendered anchor element.Root Cause: The
referrerPolicyattribute was missing from theanchorPropertieswhitelist in the properties filtering system.Changes Made:
referrerPolicytoanchorPropertiesarray inproperties.ts(line 211)referrerPolicyis properly handled for anchor elementsyarn changeFiles Changed:
packages/react-components/react-utilities/src/utils/properties.ts- AddedreferrerPolicyto the anchor properties whitelistpackages/react-components/react-utilities/src/utils/properties.test.ts- Added test to verify anchor properties includingreferrerPolicychange/@fluentui-react-utilities-75cdb456-2717-4c91-abf0-756ad84f4720.json- Change file for version bumpTesting:
referrerPolicyin anchor propsResult:
The Link component now properly passes the
referrerPolicyattribute to the rendered<a>element, allowing developers to control the Referer header sent when following links.Original prompt
referrerPolicyproperty of theLinkcomponent is not working #35443💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.