---
editLink: false
prev: false
next: false
lastUpdated: false
search: false
---

## Search Results

This page is only used to trigger the search using URL parameters.

<script setup>
// open search dialog and enter text from query string (q=...)

import { nextTick, onMounted } from 'vue'

onMounted(() => {
  const button = document.getElementsByClassName('DocSearch-Button')
  if (button?.length) {
    button[0].click()

    const urlParams = new URLSearchParams(window.location.search)
    const query = urlParams.get('q')
    if (query) {
      setTimeout(() => {
        const input = document.getElementsByClassName('search-input')
        if (input?.length) {
          input[0].value = ''
          input[0].focus()
          document.execCommand('insertText', false, query)
        }
      }, 200)
    }
  }
})

</script>
