Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Update wishlist

KrzysztofPajak8d1d1bb0e054
diff --git a/src/Web/Grand.Web/Views/Shared/SidebarWishlist.cshtml b/src/Web/Grand.Web/Views/Shared/SidebarWishlist.cshtml
index 215e481a7..ddd1a3dd0 100644
--- a/src/Web/Grand.Web/Views/Shared/SidebarWishlist.cshtml
+++ b/src/Web/Grand.Web/Views/Shared/SidebarWishlist.cshtml
@@ -7,7 +7,7 @@
<ul class="sidebar-cart wishlist px-0">
<li class="nav-item">
<a href="#" target="_self" class="nav-link">
- <b-icon icon="heart" :variant="[darkMode ? 'white' : 'dark']" @@click="updateWishlist()" v-b-toggle.sidebar-wishlist></b-icon>
+ <b-icon icon="heart" :variant="[darkMode ? 'white' : 'dark']" @@click="updateWishlist('@Url.RouteUrl("Wishlist")')" v-b-toggle.sidebar-wishlist></b-icon>
<span class="qty-indicator wishlist-qty">
@Loc["Wishlist.HeaderQuantity", Model]
</span>
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/app.js b/src/Web/Grand.Web/wwwroot/theme/script/app.js
index 31b5052ec..fe69606cb 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/app.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/app.js
@@ -240,9 +240,9 @@
this.flycartfirstload = false
))
},
- updateWishlist: function () {
+ updateWishlist: function (url) {
axios({
- baseURL: '/wishlist',
+ baseURL: url,
method: 'get',
data: null,
headers: {