Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Fix FontAwesome path #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix FontAwesome path #136

wants to merge 1 commit into from

Conversation

alejandroandreu
Copy link

$fa-font-path ends has a trailing slash, which that browsers will do requests towards /assets/fonts/FontAwesome//fontawesome-webfont.{eot,woff,ttf} as per _sass/vendor/font-awesome/_path.scss .

For most of modern web servers it's fine, as they will flatten more than 1 forward slash to 1. That is: a//b -> a/b ... However this is not the case when hosting the page in a Amazon AWS S3 bucket, as it interprets it as a literal path that doesn't exist.

Removing the trailing slash from $fa-font-path solves the issue.

See: https://forums.aws.amazon.com/thread.jspa?threadID=13898

$fa-font-path ends has a trailing slash, which that browsers will do requests towards /assets/fonts/FontAwesome//fontawesome-webfont.{eot,woff,ttf} as per _sass/vendor/font-awesome/_path.scss .

For most of modern web servers it's fine, as they will flatten more than 1 forward slash to 1. That is: a//b -> a/b ... However this is not the case when hosting the page in a Amazon AWS S3 bucket, as it interprets it as a literal path that doesn't exist.

Removing the trailing slash from $fa-font-path solves the issue.

See: https://forums.aws.amazon.com/thread.jspa?threadID=13898
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.

None yet

1 participant