Skip to content

Commit b736516

Browse files
authored
Merge pull request #59 from Lemoncode/#58--Resolve-problem-with-links-after-including-landing-page
problem solved
2 parents 441e441 + f1bb9a5 commit b736516

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎front/src/common/global-window.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export const getHostBaseUrl = () => window.location.origin;
1+
export const getHostBaseUrl = () =>
2+
`${window.location.origin}${window.location.pathname}`;

‎front/src/pods/trainer/trainer.container.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export const TrainerContainer = () => {
4848
};
4949

5050
React.useEffect(() => {
51-
setCurrentTrainerUrl(`${getHostBaseUrl()}/#${routes.trainer(room, token)}`);
52-
setCurrentStudentUrl(`${getHostBaseUrl()}/#${routes.student(room)}`);
51+
setCurrentTrainerUrl(`${getHostBaseUrl()}#${routes.trainer(room, token)}`);
52+
setCurrentStudentUrl(`${getHostBaseUrl()}#${routes.student(room)}`);
5353
handleConnection();
5454
}, []);
5555

0 commit comments

Comments
 (0)