Skip to content

Commit

Permalink
Change <Link to> to minor bump
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jan 24, 2023
1 parent 72e3ca6 commit 94d3660
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"chilly-stingrays-rhyme",
"little-taxis-bake",
"orange-insects-complain",
"silent-oranges-pay",
"silver-snails-destroy",
"small-squids-wash",
"spotty-cheetahs-live",
Expand Down
12 changes: 0 additions & 12 deletions .changeset/silent-oranges-pay.md

This file was deleted.

11 changes: 11 additions & 0 deletions .changeset/sweet-trains-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"react-router-dom": minor
---

Support absolute URLs in `<Link to>`. If the URL is for the current origin, it will still do a client-side navigation. If the URL is for a different origin then it will do a fresh document request for the new origin. ([#9900](https://github.com/remix-run/react-router/pull/9900))

```tsx
<Link to="https://neworigin.com/some/path">
<Link to="//neworigin.com/some/path">
<Link to="https://www.currentorigin.com/path">
```

0 comments on commit 94d3660

Please sign in to comment.