Skip to content

Commit

Permalink
add lang parameter to urlsrc for Collabora Office (#5533)
Browse files Browse the repository at this point in the history
  • Loading branch information
imwhatiam authored Jul 6, 2023
1 parent 6843033 commit a0b9412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seahub/wopi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def get_wopi_dict(request_user, repo_id, file_path,
}
WOPI_UI_LLCC = lang_dict[language_code]

full_action_url += '&ui=%s&rs=%s' % (WOPI_UI_LLCC, WOPI_UI_LLCC)
# `lang` parameter is used for Collabora Office
full_action_url += f'&ui={WOPI_UI_LLCC}&rs={WOPI_UI_LLCC}&lang={WOPI_UI_LLCC}'

# generate access token
user_repo_path_info = {
Expand Down

0 comments on commit a0b9412

Please sign in to comment.