I was creating a typical CRUD interface for a resource. After creation I respond with a redirect to a URL with a hash, but it only redirects to the URL without the hash.
Here's some logs from my server:
POST "/resource" for 127.0.0.1
Redirected to http://localhost:3000/resource#resource_20
Started GET "/resource"
I'm using Rails and Rails only logs the URL on GET requests (no hash included) but it does respond w/ the hash intact on the browser (so no problem there).
I posted this issue here because redirecting w/ a hash works when I turn Turbo off (data-turbo="false") for the form I'm using.
Hello, first issue here.
I was creating a typical CRUD interface for a resource. After creation I respond with a redirect to a URL with a hash, but it only redirects to the URL without the hash.
Here's some logs from my server:
I'm using Rails and Rails only logs the URL on GET requests (no hash included) but it does respond w/ the hash intact on the browser (so no problem there).
I posted this issue here because redirecting w/ a hash works when I turn Turbo off (
data-turbo="false"
) for the form I'm using.