xp
xp copied to clipboard
Better error message for portal.getSite() in main.js currently: Empty message in exception
Naturally it will fail, but the problem here is that you should not need the "portal" lib at all... Solution here is probalby to split portal into two different API's . site-lib and "http-lib" or something like that. And we will deprecate portal lib (killing it in 7.0)
I will assign this to @aro so he can spec the two new libraries. Also we need to consider how we will deal with the portal functions in the future - as various templating languages also do similar stuff...
It may be fixed https://github.com/enonic/xp/issues/8844 Please, verify