Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(visual-stories): visual stories throwing 404 #417

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion server/amp/handlers/story-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function ampStoryPageHandler(
) {
try {
const opts = cloneDeep(rest);
const isCorrectAmpPath = req.path.startsWith(`${getAmpPageBasePath(opts, config)}/`);
const isCorrectAmpPath = req.path.startsWith(`${getAmpPageBasePath(opts, config)}/`) || isVisualStory;
if (!isCorrectAmpPath) {
return next();
}
Expand Down