File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ function createProjectCards() {
150
150
projectSectionsTemplate . appendChild ( projectCards ) ;
151
151
152
152
groupedByOrg [ org ] . forEach ( repoData => {
153
- repoData . url = siteData . baseurl ;
153
+ repoData . baseurl = siteData . baseurl ;
154
154
const projectCard = document . createElement ( 'li' ) ;
155
155
projectCard . className = 'usa-card project-card tablet:grid-col-12' ;
156
156
projectCard . id = repoData . name ;
@@ -333,6 +333,7 @@ function renderPaginatedProjects(projects = parsedProjectsData) {
333
333
projectCards . className = "usa-card-group flex-align-stretch" ;
334
334
335
335
groupedByOrg [ org ] . forEach ( repoData => {
336
+ repoData . baseurl = siteData . baseurl ;
336
337
const projectCard = document . createElement ( 'li' ) ;
337
338
projectCard . className = 'usa-card project-card tablet:grid-col-12' ;
338
339
projectCard . id = repoData . name ;
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ export const reportHeadingTemplate = function(data) {
13
13
14
14
15
15
export function projectCardTemplate ( data ) {
16
- const baseUrl = window . location . hostname . includes ( "dsacms.github.io" ) || window . location . hostname === "localhost" ? '/metrics' : "" ;
17
- const projectUrl = `${ baseUrl } /${ data . owner } /${ data . name } /` ;
16
+ const projectUrl = `${ data . baseurl } /${ data . owner } /${ data . name } /` ;
18
17
const description = data . description !== null ? data . description : "" ;
19
18
20
19
return `
You can’t perform that action at this time.
0 commit comments