In the following link hast to be the subdomain included but it isn't. Can anyone explain me how to to that?
<%= link_to(t('email.edit_cancel_link'),edit_sub_url(key: @subscriber.ticketcode))%>
this returns http://something.com/edit_sub?key=4sC3pnRIi5OP3I8wVwnhLw and not http://subdomain.something.com/edit_sub?key=4sC3pnRIi5OP3I8wVwnhLw
Thanks David
By default, it should return url with subdomain
. Yes, there is a option named subdomain
in url helper.
Did you tried
<%= link_to(t('email.edit_cancel_link'), edit_sub_url(key: @subscriber.ticketcode, subdomain: true))%>
?
Found an issue in rails
repo.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.