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(storefront): strf-10193 Bad request for custom front matter: #1019

Conversation

bc-max
Copy link
Contributor

@bc-max bc-max commented Nov 1, 2022

What?

We don't need to send any data to bcapp since stencil can take all data from local theme.

Tickets / Documentation

Add links to any relevant tickets and documentation.

Screenshots (if appropriate)

Shop All - Page 1 - My Dev Store 23659296 2022-11-02 17-10-05

cc @bigcommerce/storefront-team

@bc-max bc-max force-pushed the STRF-10193-Bad-request-for-custom-front-matter branch 2 times, most recently from 5175a25 to 72cc3de Compare November 1, 2022 15:21
@bc-max bc-max force-pushed the STRF-10193-Bad-request-for-custom-front-matter branch from 34d8d18 to afc2104 Compare November 2, 2022 14:57
@bc-max bc-max marked this pull request as ready for review November 2, 2022 15:11
@bc-max bc-max requested a review from jairo-bc November 2, 2022 15:11
Copy link
Contributor

@jordanarldt jordanarldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -369,10 +362,10 @@ internals.getTemplatePath = (requestPath, data) => {

if (templatePath) {
templatePath = path.join('pages/custom', pageType, templatePath.replace(/\.html$/, ''));
// eslint-disable-next-line no-param-reassign
data.template_file = templatePath;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe do you to return here the value and leave the name as it is and we exit iterating over the layouts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to rename as we need updated bcapp data earlier than just template path.

@bc-max bc-max force-pushed the STRF-10193-Bad-request-for-custom-front-matter branch from d234e5d to 9356617 Compare November 2, 2022 16:31
@bc-max bc-max merged commit b7aefca into bigcommerce:master Nov 4, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2022

🎉 This PR is included in version 5.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants