Find file History
pieh chore(release): Publish
 - babel-plugin-remove-graphql-queries@2.5.2
 - babel-preset-gatsby-package@0.1.3
 - babel-preset-gatsby@0.1.5
 - gatsby-cli@2.4.6
 - gatsby-codemods@1.0.8
 - gatsby-dev-cli@2.4.8
 - gatsby-image@2.0.22
 - gatsby-link@2.0.7
 - gatsby-plugin-canonical-urls@2.0.8
 - gatsby-plugin-catch-links@2.0.9
 - gatsby-plugin-coffeescript@2.0.7
 - gatsby-plugin-create-client-paths@2.0.3
 - gatsby-plugin-cxs@2.0.3
 - gatsby-plugin-emotion@2.0.7
 - gatsby-plugin-facebook-analytics@2.0.2
 - gatsby-plugin-feed@2.0.10
 - gatsby-plugin-fullstory@2.0.2
 - gatsby-plugin-glamor@2.0.7
 - gatsby-plugin-google-analytics@2.0.8
 - gatsby-plugin-google-gtag@1.0.8
 - gatsby-plugin-google-tagmanager@2.0.7
 - gatsby-plugin-guess-js@1.0.3
 - gatsby-plugin-jss@2.0.5
 - gatsby-plugin-layout@1.0.10
 - gatsby-plugin-less@2.0.8
 - gatsby-plugin-lodash@3.0.3
 - gatsby-plugin-manifest@2.0.11
 - gatsby-plugin-netlify-cms@3.0.9
 - gatsby-plugin-netlify@2.0.6
 - gatsby-plugin-nprogress@2.0.7
 - gatsby-plugin-offline@2.0.18
 - gatsby-plugin-page-creator@2.0.5
 - gatsby-plugin-postcss@2.0.2
 - gatsby-plugin-preact@2.0.8
 - gatsby-plugin-react-css-modules@2.0.4
 - gatsby-plugin-react-helmet@3.0.3
 - gatsby-plugin-remove-trailing-slashes@2.0.6
 - gatsby-plugin-sass@2.0.5
 - gatsby-plugin-sharp@2.0.14
 - gatsby-plugin-sitemap@2.0.3
 - gatsby-plugin-styled-components@3.0.4
 - gatsby-plugin-styled-jsx@3.0.3
 - gatsby-plugin-styletron@3.0.3
 - gatsby-plugin-stylus@2.0.3
 - gatsby-plugin-subfont@1.0.3
 - gatsby-plugin-twitter@2.0.8
 - gatsby-plugin-typescript@2.0.2
 - gatsby-plugin-typography@2.2.2
 - gatsby-react-router-scroll@2.0.2
 - gatsby-remark-autolink-headers@2.0.12
 - gatsby-remark-code-repls@2.0.2
 - gatsby-remark-copy-linked-files@2.0.7
 - gatsby-remark-custom-blocks@2.0.2
 - gatsby-remark-embed-snippet@3.1.1
 - gatsby-remark-graphviz@1.0.4
 - gatsby-remark-images@3.0.1
 - gatsby-remark-katex@3.0.1
 - gatsby-remark-prismjs@3.1.1
 - gatsby-remark-responsive-iframe@2.0.7
 - gatsby-remark-smartypants@2.0.7
 - gatsby-source-contentful@2.0.16
 - gatsby-source-drupal@3.0.12
 - gatsby-source-faker@2.0.3
 - gatsby-source-filesystem@2.0.10
 - gatsby-source-graphql@2.0.7
 - gatsby-source-hacker-news@2.0.7
 - gatsby-source-lever@2.0.2
 - gatsby-source-medium@2.0.2
 - gatsby-source-mongodb@2.0.9
 - gatsby-source-npm-package-search@2.0.2
 - gatsby-source-wikipedia@2.0.3
 - gatsby-source-wordpress@3.0.16
 - gatsby-transformer-csv@2.0.5
 - gatsby-transformer-documentationjs@2.0.2
 - gatsby-transformer-excel@2.1.4
 - gatsby-transformer-hjson@2.1.3
 - gatsby-transformer-javascript-frontmatter@2.0.5
 - gatsby-transformer-javascript-static-exports@2.1.4
 - gatsby-transformer-json@2.1.6
 - gatsby-transformer-pdf@1.0.15
 - gatsby-transformer-react-docgen@2.1.3
 - gatsby-transformer-remark@2.1.14
 - gatsby-transformer-screenshot@2.0.9
 - gatsby-transformer-sharp@2.1.9
 - gatsby-transformer-sqip@2.0.9
 - gatsby-transformer-toml@2.1.3
 - gatsby-transformer-xml@2.0.5
 - gatsby-transformer-yaml@2.1.6
 - gatsby@2.0.58
 - graphql-skip-limit@2.0.2
Latest commit a3e5489 Nov 29, 2018

README.md

gatsby-plugin-catch-links

Intercepts local links from markdown and other non-react pages and does a client-side pushState to avoid the browser having to refresh the page.

For instance, in a markdown file with relative links (transformed to a tags by gatsby-transformer-remark), this plugin replaces the default link behaviour with that of gatsby-link's navigate, preserving the SPA-like page change without reload.

Check out the Using Remark example to see this plugin in action.

Install

npm install --save gatsby-plugin-catch-links

How to use

// In your gatsby-config.js
plugins: [`gatsby-plugin-catch-links`]