def store_location
      if request.get? && Adeia.api_patterns.all? { |pattern| /^#{pattern}$/.match(request.path).nil? }
        cookies[:return_to] = { value: request.fullpath, expires: 2.minutes.from_now }
      end
    end
def store_location
      if request.get? && Adeia.api_patterns.all? { |pattern| /^#{pattern}$/.match(request.path).nil? }
        cookies[:return_to] = { value: request.fullpath, expires: 2.minutes.from_now }
      end
    end
Store the current url in a cookie

 * *Args*    :

 * *Returns* :