diff --git a/auth-api/src/auth_api/services/user_settings.py b/auth-api/src/auth_api/services/user_settings.py index cfb3667ed3..f83b45347a 100644 --- a/auth-api/src/auth_api/services/user_settings.py +++ b/auth-api/src/auth_api/services/user_settings.py @@ -35,8 +35,10 @@ def fetch_user_settings(user_id): url_origin = current_app.config.get('WEB_APP_URL') for org in all_orgs: all_settings.append( - UserSettingsModel(org.id, org.name, url_origin, '/account/' + str(org.id) + '/settings', 'ACCOUNT', - org.type_code, org.status_code, '/account/' + str(org.id) + '/product-settings')) + UserSettingsModel(org.id, org.name, url_origin, + '/account/' + str(org.id) + '/settings', + 'ACCOUNT', org.type_code, org.status_code, + '/account/' + str(org.id) + '/settings/product-settings')) all_settings.append(UserSettingsModel(user_id, 'USER PROFILE', url_origin, '/userprofile', 'USER_PROFILE')) all_settings.append( diff --git a/auth-api/tests/unit/api/test_user_settings.py b/auth-api/tests/unit/api/test_user_settings.py index 48f3ab9435..9044a95bcd 100644 --- a/auth-api/tests/unit/api/test_user_settings.py +++ b/auth-api/tests/unit/api/test_user_settings.py @@ -48,4 +48,4 @@ def test_get_user_settings(client, jwt, session, keycloak_mock): # pylint:disab assert account['accountType'] == 'BASIC' assert rv.status_code == http_status.HTTP_200_OK assert schema_utils.validate(item_list, 'user_settings_response')[0] - assert account['productSettings'] == f'/account/{account["id"]}/product-settings' + assert account['productSettings'] == f'/account/{account["id"]}/settings/product-settings'