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
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
..
features Fix linking of external urls when i18n is enabled (#2343) 2020-06-15 09:07:53 -07:00
fixtures Fix linking of external urls when i18n is enabled (#2343) 2020-06-15 09:07:53 -07:00
lib Fix linking of external urls when i18n is enabled (#2343) 2020-06-15 09:07:53 -07:00
spec Remove backports (#2315) 2020-02-14 09:11:33 -08:00
.gemtest
.rspec Forward port some stable changes 2015-09-17 09:41:17 -07:00
.simplecov ignore vendor in simplecov 2013-06-04 14:28:46 -07:00
.yardopts Improve documentation for Middleman::Extension 2014-05-11 00:35:15 -07:00
cucumber.yml 2018 cleanup 2018-09-11 11:43:07 -07:00
middleman-core.gemspec Unpin ActiveSupport (#2324) 2020-05-19 16:38:51 -07:00
Rakefile 2018 cleanup 2018-09-11 11:43:07 -07:00