File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,13 @@ pub fn home_page() -> Html {
7474 ] ;
7575
7676 let staticflow_search_href = crate :: config:: route_path ( "/search?q=staticflow" ) ;
77+ let on_staticflow_search_click = {
78+ let staticflow_search_href = staticflow_search_href. clone ( ) ;
79+ Callback :: from ( move |event : MouseEvent | {
80+ event. prevent_default ( ) ;
81+ let _ = crate :: navigation_context:: navigate_spa_to ( & staticflow_search_href) ;
82+ } )
83+ } ;
7784
7885 let social_button_class = classes ! (
7986 "btn-fluent-icon" ,
@@ -347,7 +354,8 @@ pub fn home_page() -> Html {
347354 { "Admin Console" }
348355 </Link <Route >>
349356 <a
350- href={ staticflow_search_href}
357+ href={ staticflow_search_href. clone( ) }
358+ onclick={ on_staticflow_search_click}
351359 class={ classes!(
352360 "btn-fluent-search-hero" ,
353361 "no-underline"
You can’t perform that action at this time.
0 commit comments