Skip to content

Commit

Permalink
Merge pull request #18 from SirMorfield/patch-1
Browse files Browse the repository at this point in the history
fix: remove redundant "42cursus-" prefix
  • Loading branch information
FreekBes authored Apr 28, 2022
2 parents 22da727 + 167ff8f commit b75310f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function addProjectExtras() {
if (window.location.pathname.indexOf("/projects/") > -1) {
projectNameIndex = 2;
}
const projectName = window.location.pathname.split("/")[projectNameIndex].replaceAll(' ', '-');
const projectName = window.location.pathname.split("/")[projectNameIndex].replaceAll(' ', '-').replace("42cursus-", "");
extrasList.appendChild(createExtraItem("icon-user-search-1", "https://find-peers.joppekoers.nl/#" + projectName, "Find peers", "Find peers that are working on this project at your campus"));

// add MLX42 link on project pages that use the MiniLibX library
Expand Down

0 comments on commit b75310f

Please sign in to comment.