Updating issues results in parameters being added to URL

Added by Colin 't Hart 4 months ago

Hi,

We recently upgraded Redmine from 2.5.1 to 3.4.4

Since then I've had a user complaining that when he updates an issue, parameters are added to the URL, like:

https://xxx/issues/1577?issue_count=16&issue_position=2&next_issue_id=176&prev_issue_id=1462

We're pretty sure that this never used to be the case.

Is it possible to revert to the old behaviour, where the URL would remain https://xxx/issues/1577 after update?

Thanks,

Colin

Replies (2)

RE: Updating issues results in parameters being added to URL - Added by Bernhard Rohloff 4 months ago

This seems to be the expected behavior since version 3.3.0 where it was introduced in #14462.
You can revert the behavior by changing the line source:/tags/3.4.4/app/controllers/issues_controller.rb#L182

format.html { redirect_back_or_default issue_path(@issue, previous_and_next_issue_ids_params) }

to
format.html { redirect_back_or_default issue_path(@issue) }

But this eventually results in the behavior described in #14462 so you have to decide for yourself, if it's worth the effort.

RE: Updating issues results in parameters being added to URL - Added by Colin 't Hart 4 months ago

Thanks. I've patched that locally and will see what the users think.

(1-2/2)