Skip to content

Commit

Permalink
fix: update groups link from teams to groups (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivzhang authored Oct 6, 2023
1 parent 23a9fc3 commit 26dd47a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/common/src/groups/_internal/computeLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function computeLinks(

return {
self: getGroupHomeUrl(group.id, requestOptions),
siteRelative: `/teams/${group.id}`,
siteRelative: `/groups/${group.id}`,
workspaceRelative: getRelativeWorkspaceUrl("Group", group.id),
thumbnail: getGroupThumbnailUrl(requestOptions.portal, group, token),
};
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/groups/HubGroups.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe("HubGroups Module:", () => {
expect(chk.links?.self).toEqual(
`https://some-server.com/gis/home/group.html?id=${GRP.id}`
);
expect(chk.links?.siteRelative).toEqual(`/teams/${GRP.id}`);
expect(chk.links?.siteRelative).toEqual(`/groups/${GRP.id}`);
expect(chk.links?.thumbnail).toEqual(
`${hubRo.portal}/community/groups/${GRP.id}/info/${GRP.thumbnail}`
);
Expand Down
2 changes: 1 addition & 1 deletion packages/common/test/groups/_internal/computeLinks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("computeLinks", () => {
it("generates a links hash", () => {
const chk = computeLinks(group, authdCtxMgr.context.requestOptions);

expect(chk.siteRelative).toBe("/teams/00c");
expect(chk.siteRelative).toBe("/groups/00c");
expect(chk.workspaceRelative).toBe("/workspace/groups/00c");
});
});

0 comments on commit 26dd47a

Please sign in to comment.