mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

url_for unexpected behaviour #28

Open the-teacher opened 12 years ago

the-teacher commented 12 years ago

This behavior by default

url_for(controller: :payment, action: :error, subdomain: :secure) => /payment_error

And I get expected result when add option only_path: false

url_for(controller: :payment, action: :error, subdomain: :secure, only_path: false) => http://secure.my.office/payment_error

It's a bug?

pboling commented 12 years ago

Yes, that sounds like a bug. Thanks for the report!