Skip to content

Commit a93a8f0

Browse files
committed
Fix non-pod template path determination
1 parent 769b219 commit a93a8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/broccoli/search-indexer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = class SearchIndexCompiler extends Writer {
6363
if (relativePath.indexOf(podModulePrefix) === 0 && POD_TEMPLATE_REGEX.test(relativePath)) {
6464
routePath = relativePath.replace(`${podModulePrefix}/`, '').replace(POD_TEMPLATE_REGEX, '');
6565
} else if (relativePath.indexOf(modulePrefix) === 0 && /\.template-contents$/.test(relativePath)) {
66-
routePath = relativePath.replace(`${modulePrefix}/`, '').replace(/\.template-contents$/, '');
66+
routePath = relativePath.replace(`${modulePrefix}/templates/`, '').replace(/\.template-contents$/, '');
6767
}
6868

6969
if (routePath && routePath.indexOf('components/') !== 0) {

0 commit comments

Comments
 (0)