Skip to content

Commit

Permalink
Fix regression with prefix paths and gatsby-plugin-manifest (#5406)
Browse files Browse the repository at this point in the history
as per 69ca247#diff-079fdad4111264c646208511aa18a321 manifest.webmanifest should start with /

it just works (tm) when your site is flat, but when your pages are in sub directory and prefixed, its assumes your manifest files are in the subdirectory, not the root of your site (which might be prefixed).

Fixing reversion
  • Loading branch information
halkeye authored and m-allanson committed May 14, 2018
1 parent 72aa9e5 commit 996aea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-manifest/src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.onRenderBody = ({ setHeadComponents }, pluginOptions) => {
<link
key={`gatsby-plugin-manifest-link`}
rel="manifest"
href={withPrefix(`manifest.webmanifest`)}
href={withPrefix(`/manifest.webmanifest`)}
/>,
<meta
key={`gatsby-plugin-manifest-meta`}
Expand Down

0 comments on commit 996aea3

Please sign in to comment.