File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ pub(super) fn build_axum_routes() -> AxumRouter {
49
49
"/favicon.ico" ,
50
50
get_static ( || async { Redirect :: permanent ( "/-/static/favicon.ico" ) } ) ,
51
51
)
52
+ . route (
53
+ "/opensearch.xml" ,
54
+ get_static ( || async { Redirect :: permanent ( "/-/static/opensearch.xml" ) } ) ,
55
+ )
52
56
. route (
53
57
"/sitemap.xml" ,
54
58
get_internal ( super :: sitemap:: sitemapindex_handler) ,
@@ -116,13 +120,6 @@ pub(super) fn build_axum_routes() -> AxumRouter {
116
120
pub ( super ) fn build_routes ( ) -> Routes {
117
121
let mut routes = Routes :: new ( ) ;
118
122
119
- // This should not need to be served from the root as we reference the inner path in links,
120
- // but clients might have cached the url and need to update it.
121
- routes. static_resource (
122
- "/opensearch.xml" ,
123
- PermanentRedirect ( "/-/static/opensearch.xml" ) ,
124
- ) ;
125
-
126
123
routes. static_resource ( "/-/static/:single" , super :: statics:: static_handler) ;
127
124
routes. static_resource ( "/-/static/*" , super :: statics:: static_handler) ;
128
125
routes. internal_page (
You can’t perform that action at this time.
0 commit comments