rsnext/packages/next
Yuhei Yasuda 052a9d2353
Don’t prevent the browser’s default behavior for Alt key (#16003)
In most browsers, clicking links with the Alt key has a special behavior, for example, Chrome downloads the target resource. As with other modifier keys, the router should stop the original navigation to avoid preventing the browser’s default behavior.

When users click a link while holding the Alt key together, the browsers behave as follows.

Windows 10:

| Browser    | Behavior                                    |
|:-----------|:--------------------------------------------|
| Chrome 84  | Download the target resource                |
| Firefox 79 | Prevent navigation and therefore do nothing |
| Edge 84    | Download the target resource                |
| IE 11      | No impact                                   |

macOS Catalina:

| Browser    | Behavior                                    |
|:-----------|:--------------------------------------------|
| Chrome 84  | Download the target resource                |
| Firefox 79 | Prevent navigation and therefore do nothing |
| Safari 13  | Download the target resource                |
2020-08-10 20:32:47 +00:00
..
bin Update references to zeit/next.js (#13463) 2020-05-27 17:51:11 -04:00
build Improvements - Font optimizations (#16031) 2020-08-10 14:06:38 -04:00
cli Warn when Fast Refresh is disabled (React <16.10) (#15931) 2020-08-06 10:41:11 -04:00
client Don’t prevent the browser’s default behavior for Alt key (#16003) 2020-08-10 20:32:47 +00:00
compiled Do not bundle caniuse-lite (#16048) 2020-08-10 11:27:21 -04:00
export Add experimental image post-processing (#15875) 2020-08-05 17:49:44 +00:00
lib Warn when Fast Refresh is disabled (React <16.10) (#15931) 2020-08-06 10:41:11 -04:00
next-server Improvements - Font optimizations (#16031) 2020-08-10 14:06:38 -04:00
pages Support persisting the dev cache buster (#15827) 2020-08-03 14:22:55 +00:00
server fixed issue with runtime-config returning undefined when building or in a development environment (#15777) 2020-08-04 16:47:37 +00:00
telemetry Record presence of reportWebVitals (#13155) 2020-05-20 18:44:39 +00:00
types Warn when Fast Refresh is disabled (React <16.10) (#15931) 2020-08-06 10:41:11 -04:00
amp.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
amp.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
app.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
app.js Add missing dependencies to server (#5369) 2018-10-03 00:08:57 +02:00
babel.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
babel.js Monorepo (#5341) 2018-10-01 01:02:10 +02:00
client.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
client.js Monorepo (#5341) 2018-10-01 01:02:10 +02:00
config.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
config.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
constants.d.ts Remove default export from constants.d.ts (#8979) 2019-10-07 14:30:07 +02:00
constants.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
data.d.ts Remove re-exports of default when they don't exist (#9450) 2019-11-18 20:11:59 -06:00
data.js amp-bind data injection (#6840) 2019-04-02 16:09:34 +02:00
document.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
document.js Add missing dependencies to server (#5369) 2018-10-03 00:08:57 +02:00
dynamic.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
dynamic.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
error.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
error.js Add missing dependencies to server (#5369) 2018-10-03 00:08:57 +02:00
head.d.ts Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
head.js Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00
license.md Update year on license files 2020-04-21 12:24:08 +02:00
link.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
link.js Bring back module.exports because of backwards compat (#5815) 2018-12-04 15:26:20 +01:00
package.json v9.5.2-canary.16 2020-08-10 15:46:43 -04:00
README.md Improve Vercel's badge (#15946) 2020-08-06 12:35:36 -04:00
router.d.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
router.js Bring back module.exports because of backwards compat (#5815) 2018-12-04 15:26:20 +01:00
taskfile-babel.js Add support for debugging Next.js core (#13101) 2020-05-20 03:18:02 +00:00
taskfile-ncc.js Fix some webpack 5 deprecation warnings (#15797) 2020-08-03 12:57:17 +00:00
taskfile.js Do not bundle caniuse-lite (#16048) 2020-08-10 11:27:21 -04:00
tsconfig.json Move next-server back into next package (#8613) 2019-09-04 10:00:54 -04:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Contributing

Please see our contributing.md.

Authors