Skip to content

Commit b75d0e2

Browse files
committed
Removed full path from profile URL. This caused an issue with unwanted redirection when navigating to a trainee profile
1 parent 5fcf240 commit b75d0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/models/Trainee.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const getDisplayName = (trainee: Trainee): string => {
177177

178178
export const getProfileURL = (trainee: Trainee): string => {
179179
const normalizedName = removeAccents(getDisplayName(trainee).toLowerCase()).replaceAll(/\s/g, '-');
180-
return `${process.env.BASE_URL}/trainee/${normalizedName}_${trainee.id}`;
180+
return `/trainee/${normalizedName}_${trainee.id}`;
181181
};
182182

183183
// Validations

0 commit comments

Comments
 (0)