link_to with method post and a target does not work #2885

Closed
calamitas opened this Issue Sep 6, 2011 · 4 comments

Comments

Projects
None yet
4 participants

The following snippet:

link_to "link", "http://example.com", :method => :post, :target => "_blank"

does not work as expected. The target is ignored.

The solution is as simple as copying the target attribute over to the temp form before submitting it.

Pull requests:
rails/jquery-ujs#207 for jquery-ujs
rails/prototype-ujs#10 for prototype-ujs

Contributor

frodsan commented Apr 28, 2012

@steveklabnik @rafaelfranca I tried this and works fine now. I think that you can close it :)

@frodsan Just bumped with the issue, so I'm closing. Thanks! :)

@gregjacobs and thanks for the fix :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment