1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-core/lib
Paul McMahon d59d0389e6
Fix linking of external urls when i18n is enabled (#2343)
The Internationalization extension is redefining url_for to localize url
paths. However, this redefinition was also acting on external urls,
causing them to sometimes have an "/index.html" appended to them.

This path uses the presence of a host in the parsed URI object to
determine whether or not a URL is "external". This is the same method
for determining this as is already used in the base url_for.
2020-06-15 09:07:53 -07:00
..
middleman Fix rack api 2019-01-01 15:20:48 -08:00
middleman-core Fix linking of external urls when i18n is enabled (#2343) 2020-06-15 09:07:53 -07:00
middleman-core.rb Remove backports (#2315) 2020-02-14 09:11:33 -08:00