Skip to content

fix: correct invalid viewport initialScale and duplicate subject code#299

Open
NamanBharsakale wants to merge 1 commit into
pushkarscripts:mainfrom
NamanBharsakale:fix/viewport-and-subject-code-collision
Open

fix: correct invalid viewport initialScale and duplicate subject code#299
NamanBharsakale wants to merge 1 commit into
pushkarscripts:mainfrom
NamanBharsakale:fix/viewport-and-subject-code-collision

Conversation

@NamanBharsakale

Copy link
Copy Markdown

Fix Critical Mobile Viewport Configuration and Subject Route Collision Issues

Description

This PR addresses two critical issues affecting mobile rendering and subject routing.

1. Fixed Invalid Mobile Viewport Configuration

  • Updated the viewport configuration in app/layout.tsx.
  • Changed initialScale from 0 to 1 to comply with browser viewport standards.
  • Ensures proper rendering and scaling behavior across mobile devices and browsers.

2. Resolved Subject Route Collision

  • Fixed duplicate route code mappings in app/components/subjects.tsx.
  • Assigned a unique route identifier to Entrepreneurship & Startup to eliminate URL conflicts with Environmental Studies.
  • Ensured all subjects now have unique and deterministic routes.

Changes Made

  • Updated viewport configuration:

    export const viewport = {
      width: "device-width",
      initialScale: 1
    };
  • Updated subject route mappings to maintain uniqueness across all subject URLs.

Testing Performed

  • Verified mobile rendering on responsive viewports.
  • Confirmed unique URL generation for all subjects.
  • Tested navigation to Environmental Studies and Entrepreneurship & Startup pages independently.
  • Ensured no regressions in existing routing functionality.

Impact

  • Improves mobile user experience.
  • Prevents route ambiguity and incorrect content resolution.
  • Enhances application reliability and maintainability.

Related Issue

Fixes #297

- Set initialScale to 1 (was 0, which is invalid and breaks mobile rendering)
- Change Entrepreneurship & Startup subject code from "es" to "ent" to
  resolve URL collision with Environmental Studies (also coded "es")

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

@NamanBharsakale is attempting to deploy a commit to the PushkarScripts Team on Vercel.

A member of the Team first needs to authorize it.

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.

Fix Critical Mobile Viewport Configuration and Subject Route Collision Issues

1 participant