feat(backend): added path+query to autocomplete (#1946)
This commit is contained in:
parent
e424ccd26b
commit
4099eea0f6
1 changed files with 5 additions and 1 deletions
|
|
@ -119,7 +119,11 @@ func (conn *Conn) InsertWebPageEvent(sess *sessions.Session, e *messages.PageEve
|
|||
log.Printf("insert web page event in bulk err: %s", err)
|
||||
}
|
||||
// Add new value set to autocomplete bulk
|
||||
conn.InsertAutocompleteValue(sess.SessionID, sess.ProjectID, "LOCATION", path)
|
||||
location := path
|
||||
if query != "" {
|
||||
location += "?" + query
|
||||
}
|
||||
conn.InsertAutocompleteValue(sess.SessionID, sess.ProjectID, "LOCATION", location)
|
||||
conn.InsertAutocompleteValue(sess.SessionID, sess.ProjectID, "REFERRER", url.DiscardURLQuery(e.Referrer))
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue