-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(patchers): @nextcloud/router@3 compatibility #537
Conversation
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, compiled on Linux correctly
@@ -25,6 +25,10 @@ import { getRootUrl, generateFilePath as _generateFilePath } from '@desktop-modu | |||
|
|||
export { linkTo, getRootUrl, generateUrl } from '@desktop-modules--@nextcloud/router' | |||
|
|||
// getBaseUrl added in v3.0.0 | |||
// On Talk Desktop same as getRootUrl, because getRootUrl is absolute already | |||
export const getBaseUrl = getRootUrl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we should be careful about it, I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or find a better solution to handle requests and URL...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I have no ideas
☑️ Resolves
@nextcloud/router@3
🚧 Tasks
getBaseUrl
ProvidePlugin
, actually define globals inwindow
same as Server works.window._oc_webroot
+window._oc_appswebroots
for@nextcloud/router