Content
You are here:
Jump into a project folder after a search
Added by Kersten Mitte over 7 years ago
Hi all,
i use core version 6.14 now.
After the search for an item and the following selection, the correct work package is displayed, but it is not changed to the project folder of the work package.
In previous versions 5.xx was still so.
Can I configure the behavior exactly as in version 5.xx?
Greeting
Kersten
Replies (2)
Hi Kersten,
This is fixed in the next minor release of OpenProject.
You could apply the patch if you want to, but there is no other way to configure the behavior otherwise.
Best,
Oliver
Hi Oliver,
i patched the file “app/controllers/search_controller.rb” as you have suggested, but it do not work as expected.
after a click on the search link the result is the right working_package but still the wrong project.
the following patch works for me perfect:
file: app/views/search/index.html.erb
+ <%= link_to highlight_tokens(truncate(e.event_title, escape: false, length: 255), `tokens),e %>
work_package 11 is in project “a”
without change:
search result start in project “b”, link = http://…/projects/b/work_package/11
after change:
search result start in project “b”, link = http://…/work_package/11
openproject makes a redirect to http://…/projects/a/work_package/11/activity
Best,
Kersten