Closed (fixed)
Project:
Project issue tracking
Version:
7.x-2.x-dev
Component:
Issues
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2024 at 13:05 UTC
Updated:
27 Jun 2024 at 20:54 UTC
Jump to comment: Most recent
Comments
Comment #2
bramdriesenI guess the easiest fix would be to just check if the current path matches the path exactly.
$is_adv_search = current_path() === 'project/issues/search';Comment #4
bramdriesenComment #5
bramdriesenIt's friday 😅 this won't work
Comment #6
bramdriesenSince the format of the advanced search url is like
https://www.drupal.org/project/issues/search/search_apiI guess we can just check for the URL
project/issues/search/with a trailing/Comment #7
fjgarlin commentedhttps://www.drupal.org/project/issues/search (global advanced search for all modules) would not match that.
I think we need an or condition, something like this:
Comment #8
fjgarlin commentedI tested the above suggestion here https://fjgarlin-drupal.dev.devdrupal.org/project/issues/search and here https://fjgarlin-drupal.dev.devdrupal.org/project/issues/search_api and it seems to work. So it just needs applying to the MR.
Comment #9
joachim commentedSo:
- /project/issues/search is global advanced search
- project/issues/search/search_api is specific advanced search
and
- project/issues/search_api is plain specific search
Sounds like a regex with a \b at the end will do it.
Fortunately there is no module just called 'search'!
Comment #10
bramdriesenYes, that would solve the issue for both cases
Comment #11
bramdriesenApplied the suggestion.
Comment #12
fjgarlin commentedMy test at 7 has the same code as the MR. Setting it to RTBC.
Comment #15
drummThanks all, this has been deployed.