Hi michel, i don't remeber how i fixed the problem.
This is last version i wrote
- (I18n.available_locales - [I18n.locale]).each do |l|
%link{rel: 'alternate', hreflang: l, href: (request.protocol + request.host_with_port + url_for(locale: l)).html_safe}
And in gemfile:
I remeber i've used this fork for utf8 chars support in routes.
take a try let me know if it works