# Node red search bar redirect bug

**URL:** <https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280>\
**Category:** General\
**Created:** [7 August 2020 16:46 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280 "2020-08-07T16:46:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecrode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecrode/32/25252_2.png) [@ecrode](https://discourse.nodered.org/u/ecrode)\
**Post date:** [7 August 2020 16:46 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/1 "2020-08-07T16:46:56Z")

</div>

Expected behavior: Upon loading node red, attempt to use any of the search bars, such as "Search flows" under deploy button. After typing in the query and pressing enter results should be shown.

Actual behavior: Upon pressing enter, the page is reloaded and the search query is lost.

Root cause: There appears to be an issue with URL structure whereas "[https://node.red/#flow/xxx.yyy](https://node.red/#flow/xxx.yyy)", which is what is being loaded by default by visiting "[https://node.red/](https://node.red/)", will cause any search bar to reload the page in order to include the "?" within the UR prior to "#flow": "[https://node.red/?#flow/xxx.yyy](https://node.red/?#flow/xxx.yyy)". After the question mark is present, the search bars will start working as expected.

Versions effected: I've noticed this on version 1.1.2, which is the first 1.x.x version I've tried. 1.1.3 also has this issue.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 August 2020 17:30 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/2 "2020-08-07T17:30:03Z")

</div>

Does anything show up while you ate typing in the search term `before` you hit 'enter'?

As I type in the search, results start to show. If however I hit enter I do see the screen reload the flow. @dceejay is this expected behavior?

1 - what platform are you running on?  
2 - where did you come up with `http://node-red/`?

---

<div class="post-metadata">

**Author:** ![ecrode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecrode/32/25252_2.png) [@ecrode](https://discourse.nodered.org/u/ecrode)\
**Post date:** [7 August 2020 17:52 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/3 "2020-08-07T17:52:03Z")

</div>

As I type, results do show. I primarily experience reloads within manage palette menu. As I search for what to add / remove I need to stop myself from pressing enter, otherwise the search & results are lost.  
After the flow is reloaded with the ? mark, I can use enter at will.

My node red is running as a docker container within vmware photon os.  
I primarily access the node red UI via nginx and custom domain, though I verified that the issue is identical if the interface is accessed directly. I replaced the actual domain I use with "node.red" for privacy.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [7 August 2020 18:02 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/4 "2020-08-07T18:02:12Z")

</div>

Can I get you to raise an issue? I thought we handled all the form-submit events, but I can see as you do that it only seems to work when there's no `?` in the url.

---

<div class="post-metadata">

**Author:** ![ecrode](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecrode/32/25252_2.png) [@ecrode](https://discourse.nodered.org/u/ecrode)\
**Post date:** [7 August 2020 18:32 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/5 "2020-08-07T18:32:28Z")

</div>

Thank you, done:

> <https://github.com/node-red/node-red/issues/2678#issue-675194548>
>
> What are the steps to reproduce?
> Load node red interface via home page: http://server:1880/
> Page will load the default flow and URL will...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 October 2020 18:32 UTC](https://discourse.nodered.org/t/node-red-search-bar-redirect-bug/31280/6 "2020-10-06T18:32:28Z")

</div>

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