polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

Unnecessary URL Conversion

Open ShawnTeoh opened this issue 7 years ago • 2 comments

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.

ShawnTeoh avatar May 23 '17 20:05 ShawnTeoh

@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

vlsi avatar Jun 26 '17 21:06 vlsi

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

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

jerturowetz avatar Nov 14 '18 04:11 jerturowetz