Skip to content

Commit 3aa82e3

Browse files
committed
Fix removed 'parent' link
1 parent 9c0f7ef commit 3aa82e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/catalog/rs_server_catalog/user_catalog.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,10 +942,9 @@ async def manage_get_response( # pylint: disable=too-many-locals, too-many-bran
942942
user_login,
943943
)
944944
content["collections"] = self.update_links_for_all_collections(content["collections"])
945-
self_parser = urlparse(content["links"][2]["href"])
945+
self_parser = urlparse(content["links"][1]["href"])
946946
content["links"][0]["href"] += "catalog/"
947-
content["links"][1]["href"] += "catalog/"
948-
content["links"][2]["href"] = self_parser._replace(path="/catalog/collections").geturl()
947+
content["links"][1]["href"] = self_parser._replace(path="/catalog/collections").geturl()
949948

950949
# If we are in cluster mode and the user_login is not authorized
951950
# to this endpoint returns a HTTP_401_UNAUTHORIZED status.

0 commit comments

Comments
 (0)