Skip to content

Commit

Permalink
Merge pull request #3268 from nextcloud/backport/3263/stable2.3
Browse files Browse the repository at this point in the history
[stable2.3] Fix missing slashes in generated urls
  • Loading branch information
ChristophWurst authored Jun 29, 2021
2 parents c2471c0 + 70b9b5b commit 718e3b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default {
async findShareesFromCircles(query, hiddenPrincipals, hiddenUrls) {
let results
try {
results = await HttpClient.get(generateOcsUrl('apps/files_sharing/api/v1') + 'sharees', {
results = await HttpClient.get(generateOcsUrl('apps/files_sharing/api/v1/') + 'sharees', {
params: {
format: 'json',
search: query,
Expand Down
3 changes: 2 additions & 1 deletion src/services/talkService.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { generateUrl, generateOcsUrl } from '@nextcloud/router'
export async function createTalkRoom(eventTitle = null) {
let response
try {
response = await HTTPClient.post(generateOcsUrl('apps/spreed/api/v1', 2) + `room`, {
response = await HTTPClient.post(generateOcsUrl('apps/spreed/api/v1/', 2) + `room`, {
roomType: 3,
roomName: eventTitle || t('calendar', 'Chat room for event'),
})
Expand All @@ -44,6 +44,7 @@ export async function createTalkRoom(eventTitle = null) {
return generateURLForToken(token)
} catch (error) {
console.debug(error)
throw error
}
}

Expand Down

0 comments on commit 718e3b6

Please sign in to comment.