Skip to content

Commit

Permalink
Merge pull request #618 from Sbodazo/add-rel-prop
Browse files Browse the repository at this point in the history
added rel prop for better SEO
  • Loading branch information
victorhmp authored Aug 2, 2021
2 parents 29ee026 + 60eb6a6 commit 03df680
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- `rel` prop to `Link` component for better SEO.

## [8.130.0] - 2021-06-28
### Changed
Expand Down
2 changes: 2 additions & 0 deletions react/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface Props extends NavigateOptions {
className?: string
target?: string
waitToPrefetch?: number
rel?: HTMLAnchorElement['rel']
}

const appendWorkspaceToURL = (
Expand Down Expand Up @@ -55,6 +56,7 @@ const Link: React.FunctionComponent<Props> = ({
modifiersOptions,
target,
waitToPrefetch,
rel,
...linkProps
}) => {
const {
Expand Down

0 comments on commit 03df680

Please sign in to comment.