Skip to content

Commit

Permalink
Fix invalid href error message (#17183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdornan authored Sep 18, 2020
1 parent 5f16e06 commit 0c4022e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions errors/invalid-href-passed.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ When using any of these, it is expected they are only used for internal navigati

Either you passed a non-internal `href` to a `next/link` component or you called `Router#push` or `Router#replace` with one.

Invalid `href`s include external sites (https://google.com) and `mailto:` links. In the past, usage of these invalid `href`s could have gone unnoticed but since they can cause unexpected behavior.
We now show a warning in development for them.
Invalid `href`s include external sites (https://google.com) and `mailto:` links. In the past, usage of these invalid `href`s could have gone unnoticed, but since they can cause unexpected behavior we now show a warning in development for them.

#### Possible Ways to Fix It

Expand Down

0 comments on commit 0c4022e

Please sign in to comment.