Wix Code Bug!

I think there’s a bug in wix code or it just updated or it just my code not working, but my code is working perfectly but last day it doesn’t work.

Editor page - https://editor.wix.com/html/editor/web/renderer/edit/0f2a2a2e-c0ef-4f72-98b3-679302cef3fb?metaSiteId=a6fdb801-9819-4822-8a0c-9d8fd99355b4&editorSessionId=7339F8E9-0F34-40D6-8F24-F1FC1CEF419D

One of my code that doesn’t work is my search box


and the link to my registration and profile page


Please advice!

First you cant have a wixLocation.to and then code after that line, that code will never be executed. It will redirect at once. If you console log the link value what do you get.

aw … it’s really my code not running will. this is what console log display, see the image below


Do you have a better idea how to do it?

Thank you,
Geo