Skip to content

fix: redirect subject landing pages to chapter 0#190

Open
Official-Prasad wants to merge 1 commit into
pushkarscripts:mainfrom
Official-Prasad:fix/subject-landing-page-redirect
Open

fix: redirect subject landing pages to chapter 0#190
Official-Prasad wants to merge 1 commit into
pushkarscripts:mainfrom
Official-Prasad:fix/subject-landing-page-redirect

Conversation

@Official-Prasad
Copy link
Copy Markdown

Related Issue

Fixes #185


Description

All subject landing pages (e.g. /sem1/c, /sem2/oops, /sem4/os) were showing a generic placeholder — "Welcome to the Tutorial / Select a chapter from the sidebar" — instead of actual content. The comment in each file even incorrectly said // app/page.tsx, confirming it was a copy-paste leftover from a template.

This PR replaces all 10 placeholder page.tsx files with a proper Next.js redirect() to each subject's first chapter (ch0), so users land directly on real content.


Type of Change

  • Bug fix

Screenshots / Demo

Before: Visiting /sem1/c showed an unstyled placeholder with no navbar or styling.
After: Visiting /sem1/c instantly redirects to /sem1/c/ch0 with full content.


How Has This Been Tested?

Ran npm run dev locally and visited each affected route (/sem1/c, /sem1/em1, /sem1/ep, /sem2/dsc, /sem2/em2, /sem2/oops, /sem3/coa, /sem4/dbms, /sem4/dops, /sem4/os). All redirected correctly to their respective ch0 pages.


Checklist

  • My code follows the project structure and conventions
  • I have tested the changes locally
  • I have linked the related issue properly
  • No existing functionality was broken

AI Usage

  • I have used AI tools (Claude) and I have reviewed, verified, and understood all generated code/content before submitting this PR

If AI tools were used, briefly explain how:

Used Claude to identify the bug, generate the fixed redirect files, and assist with the PR workflow.


Additional Notes

Files changed: app/sem1/c/page.tsx, app/sem1/em1/page.tsx, app/sem1/ep/page.tsx, app/sem2/dsc/page.tsx, app/sem2/em2/page.tsx, app/sem2/oops/page.tsx, app/sem3/coa/page.tsx, app/sem4/dbms/page.tsx, app/sem4/dops/page.tsx, app/sem4/os/page.tsx

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 26, 2026

@Official-Prasad is attempting to deploy a commit to the PushkarScripts Team on Vercel.

A member of the Team first needs to authorize it.

@Official-Prasad
Copy link
Copy Markdown
Author

Hi @pushkarscripts! 👋
I've fixed the subject landing pages that were showing a generic placeholder. All 10 pages now redirect directly to chapter 0. The Vercel check is failing due to fork authorization — the code itself is clean and conflict-free. Would love a review! 🙏

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.

[BUG]: [GSSoC26] feat: Subject landing pages show generic placeholder content

1 participant