-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 interaction with groups that contain a slash #11200
Fix interaction with groups that contain a slash #11200
Conversation
@@ -51,7 +51,7 @@ export default new Router({ | |||
name: 'users', | |||
children: [ | |||
{ | |||
path: ':selectedGroup', | |||
path: ':selectedGroup(.*)', |
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.
No, this is working fine.
We need to encode the variables in the ocs requests instead.
Request URL: https://dev.skjnldsv.com/ocs/v2.php/cloud/groups/Test/1/users/details?offset=0&limit=25&search=
Should be /ocs/v2.php/cloud/groups/Test%2F1/users/details
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.
No, the old URL works since Nextcloud 9 and should not require urlencoding all of a sudden.
It fixes #11110, right? |
@MorrisJobke no idea :/ |
@nickvergessen @skjnldsv Mind to rebase this one? |
Signed-off-by: Joas Schilling <coding@schilljs.com>
129317d
to
1997346
Compare
Rebased and rebuild the JS assets. |
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 and works 👍
/backport to stable14 |
/backport to stable13 |
The backport to stable13 failed. Please do this backport manually. |
1 similar comment
The backport to stable13 failed. Please do this backport manually. |
/backport to stable14 |
The backport to stable14 failed. Please do this backport manually. |
/backport to stable15 |
The backport to stable15 failed. Please do this backport manually. |
@skjnldsv can you help? The Vue-router seems to escape the placeholders
So when you open a group which contains a slash and reload the page, it breaks.
https://localhost/index.php/settings/users/test%2Fusers
with
https://localhost/index.php/settings/users/test/users it works quite fine.
Fixes #11110