instance method
original_fullpath
Ruby on Rails 7.1.6
Since v3.1.12Signature
original_fullpath()
Returns a String with the last requested path including their params.
# get '/foo' request.original_fullpath # => '/foo' # get '/foo?bar' request.original_fullpath # => '/foo?bar'
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 254
def original_fullpath
@original_fullpath ||= (get_header("ORIGINAL_FULLPATH") || fullpath)
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 254
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request