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

Unnecessary URL Conversion #57

Open
ShawnTeoh opened this issue May 23, 2017 · 2 comments
Open

Unnecessary URL Conversion #57

ShawnTeoh opened this issue May 23, 2017 · 2 comments

Comments

@ShawnTeoh
Copy link

Let's say I have a link like /about, it gets translated (e.g. /es/about). But if I use a link like //fonts.googleapis.com/css?family=Lato for CDN, it also gets translated to /es//fonts.googleapis.com/css?family=Lato. Could this behaviour be avoided? Thank you.

@vlsi
Copy link
Collaborator

vlsi commented Jun 26, 2017

@ShawnTeoh , does exclude: [regex1, regex2, ...] answer your question?
See https://github.com/untra/polyglot/blob/master/site/_config.yml#L36

On the other hand, /es//whatever.com/... is a strange url

@jerturowetz
Copy link

jerturowetz commented Nov 14, 2018

Oh @ShawnTeoh did you add a space after href to override polyglot?

href=" //fonts.googleapis.com/css?family=Lato"

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

No branches or pull requests

3 participants