Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add dynamic page title for course pages #1287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anxkhn
Copy link

@anxkhn anxkhn commented Sep 20, 2024

  • Added dynamic page titles using the course title in cms/src/app/courses/[courseId]/[...moduleId]/page.tsx.
  • Fallback to default site title if course title is not available.

Resolves #653

Checklist before requesting a review

  • I have performed a self-review of my code
  • I assure there is no similar/duplicate pull request regarding same issue

Why?

It was difficult to differentiate between multiple video tabs as they all had the same title. This PR gives each tab a unique title based on the video being watched, making it easier to navigate. Note: This update currently applies only to individual video pages. Plans to extend this to weekly and course pages are in the pipeline.

image

- Added dynamic page titles using the course title in `cms/src/app/courses/[courseId]/[...moduleId]/page.tsx`.
- Fallback to default site title if course title is not available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement : Updating the Title of the website.
1 participant