
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
gatsby-plugin-catch-links
Advanced tools
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.
This plugin intercepts all local links that have not been created in React using gatsby-link
, and replaces their behavior with that of the gatsby-link
navigate
. This avoids the browser having to refresh the whole page when navigating between local pages, preserving the Single Page Application (SPA) feel.
Example use cases:
a
tags by
gatsby-transformer-remark
)a
tag that has been created by a Content Management System (CMS) WYSIWYG editornpm install gatsby-plugin-catch-links
// In your gatsby-config.js
plugins: [`gatsby-plugin-catch-links`]
excludePattern
[Regular Expression][optional]
Regular expression for paths to be excluded from being handled by this plugin.
{
resolve: `gatsby-plugin-catch-links`,
options: {
excludePattern: /(excluded-link|external)/,
},
},
FAQs
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.
We found that gatsby-plugin-catch-links demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.