Skip to content

fix: resolve relative asset path loading issue#7259

Open
priyachauh5 wants to merge 1 commit into
dhairyagothi:Mainfrom
priyachauh5:fix-relative-path-bug
Open

fix: resolve relative asset path loading issue#7259
priyachauh5 wants to merge 1 commit into
dhairyagothi:Mainfrom
priyachauh5:fix-relative-path-bug

Conversation

@priyachauh5
Copy link
Copy Markdown
Contributor

📝 Pull Request Description

Summary

This PR fixes asset loading issues in the Solar System Carousel project caused by incorrect relative path resolution.

When the project is accessed through the directory URL, relative paths for the stylesheet and image assets are resolved incorrectly, resulting in missing styles and broken images. This change updates the asset references to use explicit paths, ensuring resources load consistently regardless of how the project is accessed.


🛠️ Changes Made

  1. Updated the stylesheet reference from a relative path to an explicit path:
  2. index.css → /public/Carousel%20Solar%20System/index.css
  3. Updated image asset references to use explicit paths.
  4. Resolved 404 errors caused by incorrect path resolution.
  5. Ensured CSS and image resources load correctly when the project is accessed via the directory URL.

Before: Missing styles and broken image assets.
image

After: Correct styling and successful image rendering.
image

Fixes #7189

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 7, 2026

@priyachauh5 is attempting to deploy a commit to the Dhairya Gothi 's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 7, 2026

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@dhairyagothi dhairyagothi added gssoc:approved Approved by admin level:beginner Beginner difficulty task type:refactor Refactoring/improvement labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Approved by admin level:beginner Beginner difficulty task type:refactor Refactoring/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CSS and Images Fail to Load Due to Incorrect Relative Path Resolution

2 participants