Awesome Open Source
Awesome Open Source

Travis npm package


Generates meta redirect html files for redirecting on any static file host.


npm install --save gatsby-plugin-meta-redirect


yarn add gatsby-plugin-meta-redirect

How to use

// In your gatsby-config.js
plugins: [
  `gatsby-plugin-meta-redirect` // make sure to put last in the array


You can create redirects using the createRedirect action.

An example:

createRedirect({ fromPath: '/old-url', toPath: '/new-url', isPermanent: true });
createRedirect({ fromPath: '/url', toPath: '/zn-CH/url', Language: 'zn' });

That will generate the following html files:


<meta http-equiv="refresh" content="0; URL='/new-url/'" />



<meta http-equiv="refresh" content="0; URL='/zn-CH/url/'" />

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (68,028
gatsby (220
gatsbyjs (94
gatsby-plugin (28
redirects (14

Find Open Source By Browsing 7,000 Topics Across 59 Categories