Method: ActionDispatch::Request#original_fullpath
- Defined in:
- lib/action_dispatch/http/request.rb
#original_fullpath ⇒ Object
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'
265 266 267 |
# File 'lib/action_dispatch/http/request.rb', line 265 def original_fullpath @original_fullpath ||= (get_header("ORIGINAL_FULLPATH") || fullpath) end |