> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/hooks/javascript-hooks/asp_redirect_url.md).

# asp\_redirect\_url

The URL where the search redirects to, when the user hits the return key, "magnifier", "search" or "more results" buttons.

```javascript
WPD.Hooks.applyFilters('asp_redirect_url', url, searchId, searchInstanceId);
```

#### Example

```javascript
window.addEventListener("load", () => {
	WPD.Hooks.addFilter('asp_redirect_url', function(url){
		return url.replace(
			"string", 
			"string_to_replace_with"
		);
	}, 10);
});
```
