You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Calling the page with the suffix /content/site/page.html/suffix result in a wrong URL for model.json for that page that looks like /content/site/page.model.jsonsuffix
Looking at the code it seems that the PathUtil._replaceExtension misses first /
See here:
Looks like the line 291 should be path += '/' + slingElementsWithoutResource.join('/');
Package version
1.4.0, but issue is present in the master too
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
Calling the page with the suffix /content/site/page.html/suffix should call for model.json with a proper URL which is /content/site/page.mode.json/suffix
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
Calling the page with the suffix
/content/site/page.html/suffix
result in a wrong URL for model.json for that page that looks like/content/site/page.model.jsonsuffix
Looking at the code it seems that the
PathUtil._replaceExtension
misses first/
See here:
aem-spa-page-model-manager/src/PathUtils.ts
Line 291 in 3b040b7
Looks like the line 291 should be
path += '/' + slingElementsWithoutResource.join('/');
Package version
1.4.0, but issue is present in the master too
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Calling the page with the suffix
/content/site/page.html/suffix
should call for model.json with a proper URL which is/content/site/page.mode.json/suffix
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: