diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/UI/particals.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/UI/particals.blade.php
index b50249267..cca7aa002 100644
--- a/packages/Webkul/Velocity/src/Resources/views/shop/UI/particals.blade.php
+++ b/packages/Webkul/Velocity/src/Resources/views/shop/UI/particals.blade.php
@@ -110,7 +110,7 @@
type="search"
class="form-control"
placeholder="{{ __('velocity::app.header.search-text') }}"
- :value="unescape(searchedQuery.term) ? unescape(searchedQuery.term.split('+').join(' ')) : ''" />
+ :value="searchedQuery.term ? searchedQuery.term.split('+').join(' ') : ''" />
@@ -404,7 +404,7 @@
localStorage.searchedImageUrl = self.uploadedImageUrl;
queryString = localStorage.searched_terms = analysedResult.join('_');
-
+
self.$root.hideLoader();
window.location.href = "{{ route('shop.search.index') }}" + '?term=' + queryString + '&image-search=1';
diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/search/search.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/search/search.blade.php
index dba5eef6d..cbf85770f 100644
--- a/packages/Webkul/Velocity/src/Resources/views/shop/search/search.blade.php
+++ b/packages/Webkul/Velocity/src/Resources/views/shop/search/search.blade.php
@@ -17,7 +17,10 @@
@endpush
@section('content-wrapper')
-
+
@if (request('image-search'))
@@ -81,8 +84,8 @@
@@ -102,6 +105,13 @@
created: function() {
this.searched_terms = localStorage.searched_terms.split('_');
+
+ this.searched_terms = this.searched_terms.map(term => {
+ return {
+ name: term,
+ slug: term.split(' ').join('+'),
+ }
+ });
}
});