Project

General

Profile

Actions

Patch #16314

open

Redirect back is overheated

Added by Anton Orel about 10 years ago. Updated almost 10 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Take a look at these code lines:

source:trunk/app/controllers/application_controller.rb@13036#L368
It is not used at all.

source:trunk/app/controllers/application_controller.rb@13036#L399
It uses same functionality that method above (relies on HTTP_REFERER).

source:trunk/app/helpers/application_helper.rb@13036#L1100
It could be replaced with `helper_method :back_url`.

source:trunk/app/controllers/application_controller.rb@13036#L390
This condition is never satisfied. I did not find an usage.

Actions #1

Updated by Jean-Philippe Lang about 10 years ago

  • Tracker changed from Defect to Patch
  • Assignee set to Jean-Philippe Lang

Anton Orel wrote:

Take a look at these code lines:

source:app/controllers/application_controller.rb#L368
It is not used at all.

It's used at least in ContextMenusController.

source:app/controllers/application_controller.rb#L399
It uses same functionality that method above (relies on HTTP_REFERER).

Not the same functionnality, one relies on the :back_url param, the other one on HTTP_REFERER. But please provide a patch if you think they can be merged in a single one.

source:app/helpers/application_helper.rb#L1100
It could be replaced with `helper_method :back_url`.

Please provide a patch.

source:app/controllers/application_controller.rb#L390
This condition is never satisfied. I did not find an usage.

Used at least in AccountController.

Actions #2

Updated by Toshi MARUYAMA almost 10 years ago

  • Description updated (diff)
Actions

Also available in: Atom PDF