Needs work
Project:
Search (from core)
Version:
1.0.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Mar 2021 at 16:31 UTC
Updated:
19 Sep 2026 at 08:39 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
wim leersComment #3
wim leersIf #3086846: Deprecate ability to disable search pages (no reason for it and causes problems and code complexity) had landed, this would not be necessary. But that will land in Drupal 10 at the earliest per #3086846-16: Deprecate ability to disable search pages (no reason for it and causes problems and code complexity).
Comment #4
wim leersComment #5
wim leersPatch explained, and next steps identified:
Technically this needs to be using the entity storage service for accessing the search page.
It's a pity the
SearchPageRepositoryInterfaceis only so partially solving the problems here.Yes … this has been wrong all along. This rendered form should be invalidated whenever the config entity it uses gets changed (e.g. from enabled to disabled or vice versa). That is not the case right now…
The real problem to fix here is the missing config dependency.
Comment #6
wim leers#5.3 apparently already has an issue, yay! See #3086824: SearchBlock plugins need to add in dependencies on the search page they submit to.
Comment #7
andypostIn related there was big discussion about how confusing this kind of messages could be for end-user #3087218: Help searches fail if site is not fully indexed, and users do not know why
Personally I find it strange to see this message, maybe instead of it it could hide the block to prevent display "not accessible" feature to visitors
Comment #8
wim leersI agree … but that's the pattern that already exists. Trying to minimize change here, and only fix the brokenness.
Comment #9
wim leersApparently the
search.view_*routes are 100% independent of theSearchPageconfig entity. My bad. But … super weird that the critical functionality that these config entities offer is not accessible in the entity type's link templates 🙃Comment #12
wim leersI truly have no clue why this would trigger this particular failure. 😔
Comment #13
wim leersNote that this adversely affects migrations too — because quite a few D7 sites have this disabled, and having that migrated over to D9 causes … well … the problem you can see in the screenshot in the issue summary!
Comment #19
quietone commentedThe Search Module was approved for removal in #3476883: [Policy, no patch] Move Search module to contrib .
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3565780: [meta] Tasks to deprecate the Search module and the removal work in #3565783: [meta] Tasks to remove the Search module.
Search will be moved to a contributed project before Drupal 12.0.0 is released.
Comment #20
quietone commentedThe Search Module has moved from core to contrib,