Skip to content

Commit

Permalink
Merge pull request #88 from unkn-wn/seo
Browse files Browse the repository at this point in the history
fix canonical
  • Loading branch information
SohamJog authored Apr 19, 2024
2 parents 48e9881 + 0cdfdff commit 8493d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/detail/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ const CardDetails = ({ courseData, semData }) => {
'&sem=' + encodeURIComponent(semData)
} />

<link rel="canonical" href={`https://boilerclasses.com/detail/${courseData.detailId}`} />

</Head>
<GpaModal isOpen={gpaModal} onClose={setGpaModal} course={course} />
<FullInstructorModal isOpen={fullInstructorModal} onClose={setFullInstructorModal} course={course} />
Expand Down
2 changes: 2 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ const CourseCatalog = () => {
<meta name="twitter:title" content="BoilerClasses - Purdue University's Unofficial Course Catalog" />
<meta name="twitter:description" content="A more user-friendly course catalog for Purdue students with blazing-fast search. From 8000+ classes offered, find more engaging geneds, discover classes more aligned with your interests, and delve into specialized offerings. BoilerClasses is an all-in-one access that provides related links for each course, including RateMyProfessor reviews, in one centralized platform." />
<meta name="twitter:image" content="https://opengraph.b-cdn.net/production/documents/a3f504c0-3442-4320-8fc3-f850a5bd1582.png?token=oOcg3vK9F6YcqVmHSegc9vJczzLuo4Oq-yrDM01kKtQ&height=776&width=1200&expires=33246633286" />

<link rel="canonical" href="https://boilerclasses.com/" />

</Head>
{!displayLanding ?
Expand Down

0 comments on commit 8493d31

Please sign in to comment.