@@ -137,20 +137,6 @@ def _landing_page(
137137 "href" : urljoin (base_url , "search" ),
138138 "method" : "POST" ,
139139 },
140- {
141- "rel" : "collections-search" ,
142- "type" : "application/json" ,
143- "title" : "Collections Search" ,
144- "href" : urljoin (base_url , "collections-search" ),
145- "method" : "GET" ,
146- },
147- {
148- "rel" : "collections-search" ,
149- "type" : "application/json" ,
150- "title" : "Collections Search" ,
151- "href" : urljoin (base_url , "collections-search" ),
152- "method" : "POST" ,
153- },
154140 ],
155141 stac_extensions = extension_schemas ,
156142 )
@@ -202,6 +188,26 @@ async def landing_page(self, **kwargs) -> stac_types.LandingPage:
202188 ]
203189 )
204190
191+ if self .extension_is_enabled ("CollectionsSearchEndpointExtension" ):
192+ landing_page ["links" ].extend (
193+ [
194+ {
195+ "rel" : "collections-search" ,
196+ "type" : "application/json" ,
197+ "title" : "Collections Search" ,
198+ "href" : urljoin (base_url , "collections-search" ),
199+ "method" : "GET" ,
200+ },
201+ {
202+ "rel" : "collections-search" ,
203+ "type" : "application/json" ,
204+ "title" : "Collections Search" ,
205+ "href" : urljoin (base_url , "collections-search" ),
206+ "method" : "POST" ,
207+ },
208+ ]
209+ )
210+
205211 # Add OpenAPI URL
206212 landing_page ["links" ].append (
207213 {
0 commit comments