1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/basic/pages/nav
James Reggio 1a3f950777 Respect target on <a/> tags under Link (#4763)
There are occasions where it is useful to have `target='_blank'` on hyperlinks within your own app. (For example, if your app is being loaded in an iframe and you'd like for the links to break out in to new windows.)

With this PR, the `onClick` logic in Link now checks for an external target on the nested <a/> tag, and will fall back to the default behavior if it's present, similar to the logic for shift-/cmd-clicking the link.
2018-07-12 00:03:25 +02:00
..
about.js Make sure lastAppProps always have some value. (#829) 2017-01-20 11:33:46 -08:00
as-path-using-router.js Introduce "asPath" into router and getInitialProps (#1857) 2017-05-03 09:40:09 -07:00
as-path.js Introduce "asPath" into router and getInitialProps (#1857) 2017-05-03 09:40:09 -07:00
hash-changes.js Make sure hashchanges get triggered (#4676) 2018-06-28 20:56:18 +02:00
index.js Respect target on <a/> tags under Link (#4763) 2018-07-12 00:03:25 +02:00
on-click.js Allow onClick on next/link component's child (#4474) 2018-05-27 20:47:02 +02:00
pass-href-prop.js fix: Forces Link to expose the href to the child using passHref property. (#2503) 2017-07-09 10:39:02 +05:30
querystring.js Add support for URL objects in Link and Router (#1345) 2017-03-12 09:27:51 +05:30
redirect.js Add test cases for getInitialProps based redirect logic. (#1578) 2017-03-31 11:35:45 -03:00
self-reload.js Reload the page if asked to change the current URL (#1159) 2017-02-15 19:27:41 +01:00
shallow-routing.js Introducing Shallow Routing (#1357) 2017-03-06 08:48:35 -08:00
url-prop-change.js Make sure props.url is immutable (#4352) 2018-05-12 20:10:17 +02:00
with-hoc.js Add asPath on the server (#3149) 2017-10-22 12:00:31 -07:00