Skip to content

This should make it clearer and more accurate in the case that PUBLIC_URL is blank. #1636

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

Closed
wants to merge 4 commits into from

Conversation

IBwWG
Copy link

@IBwWG IBwWG commented Feb 24, 2017

...which is how I found it using one scaffolding tool.

pastorsj and others added 3 commits October 4, 2016 16:43
This should make it clearer and more accurate in the case that PUBLIC_URL is blank, which is how I found it using one scaffolding tool.
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions.

It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Notice the use of the PUBLIC_URL variable in the tag above. It will
be (or has been) replaced with the URL of the `public` folder during
Copy link
Contributor

@gaearon gaearon Feb 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "will be (or has been)" -> "is"

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call.


Unlike "/favicon.ico" or "favico.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Unlike "/favicon.ico" or "favicon.ico", the link href path will, if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest I don't think this is much clearer. Maybe we could provide some example?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't understand. Example of what, exactly?

Try again with wording, incorporating suggestions.
@IBwWG
Copy link
Author

IBwWG commented Feb 27, 2017

@gaearon any better?

@gaearon
Copy link
Contributor

gaearon commented Jan 9, 2018

To be honest I don't find this to be much better. I'd leave the string as is. Thanks for the PR though!

@gaearon gaearon closed this Jan 9, 2018
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants