hotwired / hotwire-rails

Use Hotwire in your Ruby on Rails app
https://hotwired.dev
MIT License
971 stars 27 forks source link

Redirect with anchor is not handled correctly #15

Closed SimonBo closed 3 years ago

SimonBo commented 3 years ago

I tried redirecting to a path with anchor specified (redirect_to root_path, anchor: 'anchor')) during turbo stream response but it always goes to the top of the page (as if anchor was not specified). Is there a way to make TURBO_STREAM redirect handle anchors? I noticed that using anchors works correctly with links thou.

dhh commented 3 years ago

Believe this is fixed now on Turbo. If not, address on turbo repo with a reproducible case.