Skip to content

Commit

Permalink
fix(storefront): bctheme-1284 Fix error on using scoped nested extern…
Browse files Browse the repository at this point in the history
…al templates
  • Loading branch information
bc-alexsaiannyi committed Oct 17, 2022
1 parent 6a9e102 commit 89f88b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### Draft

- fix: BCTHEME-1284 fix error on using scoped nested external templates ([1002](https://github.com/bigcommerce/stencil-cli/pull/1002))

### 5.2.4 (2022-10-10)

- fix: STRF-10118 fix redirects stalling locally ([1000](https://github.com/bigcommerce/stencil-cli/pull/1000))
Expand Down
2 changes: 1 addition & 1 deletion lib/template-assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const applyExternalPath = (templateName, templates) => {
const replacePartialNames = (content, partialRoute) => {
return content.replace(
includeRegex,
(__, partialName) => `{{> ${defineBaseRoute(partialRoute)}/${partialName} }}`,
(__, partialName) => `{{> '${defineBaseRoute(partialRoute)}/${partialName}' }}`,
);
};
const trimPartial = (partial) => {
Expand Down

0 comments on commit 89f88b1

Please sign in to comment.