internal/frontend: copy search mode when replacing basepage
The search mode must be set on the basepage to properly
switch symbol search queries to the symbol search results
page.
Run-TryBot: Jamal Carvalho
TryBot-Result: kokoro
@@ -422,7 +422,10 @@ type basePage struct {
SearchModeSymbol string
}
-func (p *basePage) setBasePage(bp basePage) { *p = bp }
+func (p *basePage) setBasePage(bp basePage) {
+ bp.SearchMode = p.SearchMode
+ *p = bp
+}
// licensePolicyPage is used to generate the static license policy page.
type licensePolicyPage struct {
