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.

fixed button link structure

DanielŻuławski2896d0d6519f
diff --git a/src/Web/Grand.Web/Views/Blog/Components/BlogTags/Default.cshtml b/src/Web/Grand.Web/Views/Blog/Components/BlogTags/Default.cshtml
index 5eee45c0b..e0634a9b1 100644
--- a/src/Web/Grand.Web/Views/Blog/Components/BlogTags/Default.cshtml
+++ b/src/Web/Grand.Web/Views/Blog/Components/BlogTags/Default.cshtml
@@ -8,9 +8,9 @@
<div class="product-tags-list">
@foreach (var item in Model.Tags)
{
- <button size="sm" class="btn btn-sm btn-light mb-2 mr-2" href="@Url.RouteUrl("BlogByTag", new { tag = item.Name })" style="font-size:@(Model.GetFontSize(item))%;">
+ <a size="sm" class="btn btn-sm btn-light mb-2 mr-2" href="@Url.RouteUrl("BlogByTag", new { tag = item.Name })" style="font-size:@(Model.GetFontSize(item))%;">
@item.Name
- </button>
+ </a>
}
</div>
</div>
diff --git a/src/Web/Grand.Web/Views/Catalog/ProductTagsAll.cshtml b/src/Web/Grand.Web/Views/Catalog/ProductTagsAll.cshtml
index 1aff0e0c5..9c1313bae 100644
--- a/src/Web/Grand.Web/Views/Catalog/ProductTagsAll.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/ProductTagsAll.cshtml
@@ -14,9 +14,9 @@
<div class="btn-group-sm">
@foreach (var item in Model.Tags)
{
- <button class="btn btn-light d-flex align-items-center mr-2 mb-2" href="@Url.RouteUrl("ProductsByTagName", new { SeName = item.SeName })" style="font-size:@(Model.GetFontSize(item))%;">
+ <a class="btn btn-light d-flex align-items-center mr-2 mb-2" href="@Url.RouteUrl("ProductsByTagName", new { SeName = item.SeName })" style="font-size:@(Model.GetFontSize(item))%;">
@item.Name
- </button>
+ </a>
}
</div>
}
diff --git a/src/Web/Grand.Web/Views/Catalog/_VendorReviewOverview.cshtml b/src/Web/Grand.Web/Views/Catalog/_VendorReviewOverview.cshtml
index 69a62b47f..846a727c9 100644
--- a/src/Web/Grand.Web/Views/Catalog/_VendorReviewOverview.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/_VendorReviewOverview.cshtml
@@ -23,9 +23,9 @@
@if (Model.TotalReviews > 0)
{
<div class="product-review-links order-3">
- <button class="btn btn-sm btn-outline-info" href="@Url.RouteUrl("VendorReviews", new { VendorId = Model.VendorId })">
+ <a class="btn btn-sm btn-outline-info" href="@Url.RouteUrl("VendorReviews", new { VendorId = Model.VendorId })">
@Loc["VendorReviews.Overview.AddNew"]
- </button>
+ </a>
</div>
@* Rendering microdata info*@
double ratingValuee = ratingPercent / (double)20;
@@ -34,9 +34,9 @@
else
{
<div class="vendor-no-reviews order-3">
- <button class="btn btn-sm btn-outline-info" href="@Url.RouteUrl("VendorReviews", new { VendorId = Model.VendorId })">
+ <a class="btn btn-sm btn-outline-info" href="@Url.RouteUrl("VendorReviews", new { VendorId = Model.VendorId })">
@Loc["VendorReviews.Overview.First"]
- </button>
+ </a>
</div>
}
</div>
diff --git a/src/Web/Grand.Web/Views/Course/Lesson.cshtml b/src/Web/Grand.Web/Views/Course/Lesson.cshtml
index a74cacff0..70e7c1d3b 100644
--- a/src/Web/Grand.Web/Views/Course/Lesson.cshtml
+++ b/src/Web/Grand.Web/Views/Course/Lesson.cshtml
@@ -8,7 +8,7 @@
}
<div class="page category-page">
- <button class="btn btn-outline-info mt-3" href="@Url.RouteUrl("Course", new { SeName = Model.CourseSeName })">@Loc["Course.GoBack"]: @Model.CourseName</button>
+ <a class="btn btn-outline-info mt-3" href="@Url.RouteUrl("Course", new { SeName = Model.CourseSeName })">@Loc["Course.GoBack"]: @Model.CourseName</a>
@await Component.InvokeAsync("Widget", new { widgetZone = "courselessondetails_top", additionalData = Model.Id })
<div class="mt-3">
<div class="container d-inline-flex px-0">