Project

General

Profile

Actions

Defect #40707

open

Need update back_url definition to use relative url

Added by Brice Beaumesnil 6 months ago.

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

0%

Estimated time:
Resolution:
Affected version:

Description

Hello,

We use https proxy to access to own redmine server, but on this server redmine is on http protocol.
All features work except back_url used by the context menu because it's stay to http protocol.

In the file application_controller, the definition of back_url use request.env['HTTP_REFERER'] to create the URL.

We just change this line :

 url = CGI.unescape(referer.to_s)

To this one to use relative URL

 url = CGI.unescape(URI.parse(referer).path)

the use of relative URL is more flexible regardless of the installation mode

No data to display

Actions

Also available in: Atom PDF