@quintype/seo 1.40.4 → 1.40.5-amphtml-issue.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1063,7 +1063,7 @@ function StoryAmpTags(seoConfig, config, pageType, data = {}, opts) {
1063
1063
  return [{
1064
1064
  tag: 'link',
1065
1065
  rel: 'amphtml',
1066
- href: `${ampUrlAppend}/amp/story/${storySlug}`
1066
+ href: `${ampUrlAppend}/amp/story/${storySlug.replace("ampstories/", "")}`
1067
1067
  }];
1068
1068
  } else {
1069
1069
  return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/seo",
3
- "version": "1.40.4",
3
+ "version": "1.40.5-amphtml-issue.0",
4
4
  "description": "SEO Modules for Quintype",
5
5
  "main": "dist/index.cjs.js",
6
6
  "repository": "https://github.com/quintype/quintype-node-seo",
package/src/amp-tags.js CHANGED
@@ -44,7 +44,7 @@ export function StoryAmpTags(seoConfig, config, pageType, data = {}, opts) {
44
44
  return [{
45
45
  tag: 'link',
46
46
  rel: 'amphtml',
47
- href: `${ampUrlAppend}/amp/story/${storySlug}`
47
+ href: `${ampUrlAppend}/amp/story/${storySlug.replace("ampstories/", "")}`
48
48
  }];
49
49
  } else {
50
50
  return [];