Database search with entered query in URL

Greetings and salutations,

On the Velo Examples page, there is a search feature. I am wondering if that same feature can be replicated in the Wix editor. More specifically, URL. When you enter a search term, let’s use “data” for example, after you press the enter key the URL will change to " https://www.wix.com/velo/examples?search=data ". Can this be done? The clicking-on-the-enter-key-initiates-search is not needed, I am fine with needing an actual button on the website. The URL is what I want to try to replicate.

Sorry if I come off as rude. I unknowingly or unintentionally do that by accident.

Thank you very much,
Dale Kalber.

You are trying to generate a LINK by a button-click ?
Maybe you should read this…
https://www.wix.com/velo/reference/wix-location

Just as example…

import wixLocation from' wix-location';

$w.onReady(()=>{
	let baseUrl = wixLocation.baseUrl; console.log("Base-URL: ", baseUrl);
	let path = wixLocation.path; console.log("Path: ", path);
	
	$w(#button1").onClick((event)=>{
		let myLink = baseUrl+path; console.log("Link: ", myLink);
	});
});