# Default Search routing to wrong URL

**URL:** <https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852>\
**Category:** Suporte\
**Created:** [Setembro 25, 2026, 7:51am UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852 "2026-09-25T07:51:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tintin](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@Tintin](https://tainacan.discourse.group/u/Tintin)\
**Post date:** [Setembro 25, 2026, 7:51am UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852/1 "2026-09-25T07:51:28Z")

</div>

When I use the Default Search I am seeing some strange behaviour with routing, with the issue being that most of the search options result in a 404. I can see the problem is that the search is routing to URLs that include the WP installation folder vs the site address URL.

The odd thing is that this does not occur if I select Collections as the search option. Below are the examples of the URL it tries to route to:

- Collections; [Search Results for “clive” – Charlton Atheltic Museum](https://cafcmuseum.net/collections/?s=clive) (works)
- Global; [https://cafcmuseum.net/web/?s=clive](https://cafcmuseum.net/web/?s=clive) (404 as puts in folder) - correct URL would be [Search Results for “clive” – Charlton Atheltic Museum](https://cafcmuseum.net/?s=clive)
- Posts; [https://cafcmuseum.net/web/?onlyposts=true&s=clive](https://cafcmuseum.net/web/?onlyposts=true&s=clive) (404)
- Pages [https://cafcmuseum.net/web/?onlypages=true&s=clive](https://cafcmuseum.net/web/?onlypages=true&s=clive) (404)
- Items [https://cafcmuseum.net/web/items?search=clive](https://cafcmuseum.net/web/items?search=clive) (404)

I have tried turning off cache plugins, re-saved Permalinks, updated .htaccess as per WP guidance but no luck.

Is this a bug or am I missing some config somewhere?

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Setembro 25, 2026, 12:26pm UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852/2 "2026-09-25T12:26:44Z")

</div>

Hi @Tintin!

Thank you for bringing this up. It is definitely a bug in the Tainacan Interface theme. I’ve opened an issue to take a look at it asap:

> <https://github.com/tainacan/tainacan-theme/issues/88>
>
> Users whose WordPress installation are in a subdirectory are reporting weird beh…avior of the Header Search Bar component. It redirects to the WordPress path instead of the domain root. More details here:
> 
> https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852

---

<div class="post-metadata">

**Author:** ![mateus.m.luna](https://yyz2.discourse-cdn.com/free1/user_avatar/tainacan.discourse.group/mateus.m.luna/32/3_2.png) [@mateus.m.luna](https://tainacan.discourse.group/u/mateus.m.luna)\
**Post date:** [Setembro 25, 2026, 1:27pm UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852/3 "2026-09-25T13:27:12Z")

</div>

I believe I’ve implemented the solution, it shall be available in the next release. Meanwhile, if you need and can do a test validation, you can use this under-development version:

> **[tainacan-interface.zip](https://drive.google.com/file/d/1JmfVW5Pf1qAvOtArHkbBbflceiLEk7wI/view?usp=drive_link)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Tintin](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@Tintin](https://tainacan.discourse.group/u/Tintin)\
**Post date:** [Setembro 25, 2026, 5:12pm UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852/4 "2026-09-25T17:12:07Z")

</div>

From my initial basic tests, looks good 😎

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/tainacan/original/1X/7a4cda66d79553ef5eebf93769c00bdba65e7ab2.png) [@system](https://tainacan.discourse.group/u/system)\
**Post date:** [Setembro 30, 2026, 5:13pm UTC](https://tainacan.discourse.group/t/default-search-routing-to-wrong-url/2852/5 "2026-09-30T17:13:07Z")

</div>

Este tópico foi fechado automaticamente 5 dias depois da última resposta. Novas respostas não são mais permitidas.
