Skip to content

[Bug]: The referrerPolicy property of the Link component is not working #35443

@pansong291

Description

@pansong291

Component

Link

Package version

9.70.0

React version

18.2.0

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (6) x64 Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz
    Memory: 11.24 GB / 31.88 GB
  Browsers:
    Chrome: 141.0.7390.123
    Edge: Chromium (140.0.3485.54)
    Internet Explorer: 11.0.19041.5794
  npmPackages:
    @fluentui/react-components: ^9.70.0 => 9.70.0
    @types/react: ^18.2.21 => 18.2.21
    @types/react-dom: ^18.2.7 => 18.2.7
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0

Current Behavior

The referrerPolicy property of the Link component is not working. I assigned a value to it in the code, but this property does not appear in the rendered result.

The code:

<Link href="https://www.bing.com" referrerPolicy="no-referrer">
    This is a link
</Link>

The rendered result:

<a
 href="https://www.bing.com"
 tabindex="0"
 class="fui-Link ___1fq7916 f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f1iuv45f f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a"
>
This is a link
</a>

Expected Behavior

The rendered result:

<a
 href="https://www.bing.com"
 tabindex="0"
 referrerpolicy="no-referrer"
 class="fui-Link ___1fq7916 f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f1iuv45f f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a"
>
This is a link
</a>

Reproduction

https://stackblitz.com/edit/ylw9zmvs?file=src%2Fexample.tsx

Steps to reproduce

See above

Are you reporting an Accessibility issue?

no

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions