# Linking with NextJS

**URL:** <https://discuss.elastic.co/t/linking-with-nextjs/359498>\
**Category:** Elastic Search\
**Created:** [May 14, 2024, 11:02pm UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498 "2024-05-14T23:02:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kudumine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kudumine/32/138227_2.png) [@kudumine](https://discuss.elastic.co/u/kudumine)\
**Post date:** [May 14, 2024, 11:02pm UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498/1 "2024-05-14T23:02:47Z")

</div>

I am looking for an update to Linking/routing with NextJS 14 and Elasticsearch. I saw this [issue](https://github.com/elastic/search-ui/issues/1017) and it says it was updated and linked this: [search-ui/docs/guides-nextjs-integration.mdx at main · elastic/search-ui · GitHub](https://github.com/elastic/search-ui/blob/main/docs/guides-nextjs-integration.mdx#L51) but I still don't see the version 14 compatible option.

Is there any update to this at all?  
We are also using a custom connector so a solution that work with that.

Thank you

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [May 15, 2024, 8:57am UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498/2 "2024-05-15T08:57:36Z")

</div>

Hi @kudumine ,

Just a heads up that I've moved your question to the Elastic Search label since you're asking about search-ui.

I see in the issue that you reference that it's marked with a wont fix label as it's stale. Have you commented on the issue with the details to request an update? You might get some more detail there. If not if you can give some detail on what you're trying to do with this in your custom connector I can try and follow up.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![kudumine](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kudumine/32/138227_2.png) [@kudumine](https://discuss.elastic.co/u/kudumine)\
**Post date:** [May 20, 2024, 5:48pm UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498/3 "2024-05-20T17:48:16Z")

</div>

Hello! Thank you for the response!

The main issue we're facing is with the combination of from next/link and triggering the search.  
Navigating to the search results with does not trigger a new call to the endpoint as it does with the rest of the non elastic endpoints we are using.  
Based on some of these pass discussions and the wont fix issue on github it seems like maybe people have experienced something similar to this? Although I haven't found any answers that are helpful for Next 14 with the app directory.

I would be happy to provide more detail if needed. Thank you very much!

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [May 22, 2024, 3:18pm UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498/4 "2024-05-22T15:18:07Z")

</div>

Thanks @kudumine, another user who had a similar issue got some inspiration from this [post on Next 13](https://stackoverflow.com/questions/76284082/using-next-js-13-with-elastic-search). I think they applied this method for 14 and it worked well. They were also doing some [custom routing](https://docs.elastic.co/search-ui/api/core/configuration#routing-options) as well.

I found these two community resources (but I'm a bit unclear on the versions) as well that may be helpful:

- [Using ElasticSearch with Next.js](https://makerkit.dev/blog/tutorials/nextjs-elasticsearch)
- [Create a lookalike search engine with Next.js, Tailwind and Elasticsearch (10 steps) - DEV Community](https://dev.to/rap2hpoutre/create-a-lookalike-search-engine-with-nextjs-tailwind-and-elasticsearch-10-steps-4o9e)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2024, 3:18pm UTC](https://discuss.elastic.co/t/linking-with-nextjs/359498/5 "2024-06-19T15:18:37Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
