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

Setting relative homepage not working for media assets #9377

Closed
kubasulek2 opened this issue Jul 28, 2020 · 2 comments
Closed

Setting relative homepage not working for media assets #9377

kubasulek2 opened this issue Jul 28, 2020 · 2 comments

Comments

@kubasulek2
Copy link

Describe the bug

After setting "homepage": "./react/build" in package.json, all paths are set correctly (css, js) but media still points to '/static/media'.

Did you try recovering your dependencies?

Yes

Which terms did you search for in User Guide?

Adding Images, Fonts, and Files,
Deployment

Environment

Ubuntu 19.04, node 12.13.0, npm 6.14, create-react-app 3.4.1

Steps to reproduce

  1. install create-react-app
  2. add mp3 files to project
  3. load files to project using relative URLs
  4. set relative homepage in package json
  5. deploy a build

Expected behavior

Media files are linked relative to homepage URL

Actual behavior

Media files are linked relative to root folder

image
image

Workaround

Adjust all media paths in main.chunk.js file

@stale
Copy link

stale bot commented Aug 29, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Aug 29, 2020
@stale
Copy link

stale bot commented Sep 5, 2020

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant