Request.referrer is set to current url

Hi everyone

Before my question: a big Thank you for the great work you’ve been putting in the Hotwire approach so far. I very much appreciate it.

I’m stumbling upon the link_to :back functionality in Rails together with Turbo.

I put

<div>
  <%= "request.referrer: #{request.referrer} %>
</div>

inside my application.html.erb to examine the request.referrer on each request and it seems to always have the current url instead of the previous, which results in not being able to use the link_to :back:

with_turbo

When I comment out the turbo-import in my application.js

// import "@hotwired/turbo-rails"

the request.referrer has the expected value:

without_turbo

Is this the intended behavior?