Skip to content

Commit

Permalink
subdomain fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Shiel committed Nov 25, 2024
1 parent 57835c5 commit c58b774
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node/src/gql/query/home-page-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const homePageData = {
mentorsIntroAnswers.find(
(answer) => answer.mentor.toString() === mentor._id.toString()
)?.transcript || '',
mentorUrl: `https://${org?.name ? `${org.name}.` : ''}${domain}/chat/?mentor=${mentor._id}`,
mentorUrl: `https://${org?.subdomain ? `${org.subdomain}.` : ''}${domain}/chat/?mentor=${mentor._id}`,
thumbnail: mentor.thumbnail ? toAbsoluteUrl(mentor.thumbnail) : null,
}));
const homePageMentorPanels: HomePageMentorPanel[] = panels.map((panel) => ({
Expand Down
2 changes: 1 addition & 1 deletion node/test/graphql/query/home-page-data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('home-page-data', () => {
keywords: ['Female'],
transcript: '',
mentorUrl:
'https://USC.fakedomain.org/chat/?mentor=5ffdf41a1ee2c62111111112',
'https://usc.fakedomain.org/chat/?mentor=5ffdf41a1ee2c62111111112',
thumbnail: null,
},
]);
Expand Down

0 comments on commit c58b774

Please sign in to comment.