From a0b9412513ce0589346d9fb26317d3467a2204c6 Mon Sep 17 00:00:00 2001 From: lian Date: Thu, 6 Jul 2023 13:40:04 +0800 Subject: [PATCH] add `lang` parameter to urlsrc for Collabora Office (#5533) --- seahub/wopi/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seahub/wopi/utils.py b/seahub/wopi/utils.py index cfd921b3f00..08c2a52c6ca 100644 --- a/seahub/wopi/utils.py +++ b/seahub/wopi/utils.py @@ -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 = {