You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helper current_domain returns wrong domain. Ex.:
We have 'sub.domain.com.local'. For this case we, of course, set TLD to 2. and expect that current_domain will return 'domain.com.local', but it returns 'com.local' instead.
Here you used request.subdomains and request.domain w/o TLD param. By default it is set to 1. So, if tld_size is set to 1 in development.rb, for instance, everything works fine. But for example mentioned below this doesn't work as expected. I've just defined TLD param for calling request.subdomains and request.domain.
P.S. SubdomainFu.tld_size = X doesn't work for me. I get
undefined method `tld_size=' for SubdomainFu:Module
The text was updated successfully, but these errors were encountered:
Hi!
Helper current_domain returns wrong domain. Ex.:
We have 'sub.domain.com.local'. For this case we, of course, set TLD to 2. and expect that current_domain will return 'domain.com.local', but it returns 'com.local' instead.
The cause is here:
Here you used request.subdomains and request.domain w/o TLD param. By default it is set to 1. So, if tld_size is set to 1 in development.rb, for instance, everything works fine. But for example mentioned below this doesn't work as expected. I've just defined TLD param for calling request.subdomains and request.domain.
P.S. SubdomainFu.tld_size = X doesn't work for me. I get
undefined method `tld_size=' for SubdomainFu:Module
The text was updated successfully, but these errors were encountered: