-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make static serviceUrls in Java instead of the js assetUrl hack #454
Comments
@sigdestad and I have talked about using mapped controllers instead of services. A bit more setup for devs, but easier and more stable to handle after that. |
Now it is a task to use lib-static. Done? |
Actually it's not about using lib-static, it's about this hack which uses serviceUrl to make assetUrl.
|
Which in term is used in serviceUrlRoot lib-react4xp/src/main/resources/lib/enonic/react4xp/dependencies/initServiceUrlRoot.ts Lines 23 to 26 in e8aa9f1
|
Actually it's not used in initServiceUrlRoot, but the one from portal is (which will be gone in xp8) lib-react4xp/src/main/resources/lib/enonic/react4xp/dependencies/initServiceUrlRoot.ts Line 4 in e8aa9f1
|
There are test failures @ComLock |
yes |
Make serviceUrl "root" which is on nearest site, not on every page.
Currently WRONG!
http://localhost:8080/site/starter-r4x-project/master/_/service/com.enonic.app.react4xp/react4xp/globals.js
Should be
http://localhost:8080/site/starter-r4x-project/master/mysite/_/service/com.enonic.app.react4xp/react4xp/globals.js
--
oldref: #452
The text was updated successfully, but these errors were encountered: