Browse Source

changed url ProductDetail/{id} ->products/{id}

skoc10/publish-charts-artifacthub
malik masis 4 years ago
parent
commit
6f9964d957
  1. 4
      apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml
  2. 2
      apps/public-web/src/EShopOnAbp.PublicWeb/Pages/Index.cshtml
  3. 2
      apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml

4
apps/public-web/src/EShopOnAbp.PublicWeb/Components/UserOrders/Default.cshtml

@ -54,7 +54,7 @@
</div>
<abp-row>
<abp-column size="_2">
<a href="/ProductDetail/@item.ProductId.ToString()">
<a href="/products/@item.ProductId.ToString()">
@{
string imageUrl = $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{item.PictureUrl}";
<img class="img-size" src="@imageUrl" />
@ -62,7 +62,7 @@
</a>
</abp-column>
<abp-column size-lg="_4" size-md="_4" size-sm="_4">
<a href="/ProductDetail/@item.ProductId.ToString()">
<a href="/products/@item.ProductId.ToString()">
<div><strong>@item.ProductName</strong></div>
<div>@L["UserOrders:ProductReturnDate"] @order.OrderDate.AddMonths(1).ToString("dd MMMM yyyy")</div>
</a>

2
apps/public-web/src/EShopOnAbp.PublicWeb/Pages/Index.cshtml

@ -44,7 +44,7 @@
string productImage = !product.ImageName.IsNullOrEmpty() ? $"{options.Value.RemoteServices.Default.BaseUrl}product-images/{product.ImageName}" : $"{options.Value.RemoteServices.Default.BaseUrl}product-images/@product.ImageName";
string buyText = L["Index:AddToBasket"];
<div class="product-list-item" data-product-id="@product.Id.ToString()">
<a href="/ProductDetail/@product.Id.ToString()">
<a href="/products/@product.Id.ToString()">
<div class="col">
<div class="product-info-box">
<h6>@product.Name</h6>

2
apps/public-web/src/EShopOnAbp.PublicWeb/Pages/ProductDetail.cshtml

@ -1,4 +1,4 @@
@page "{id:guid}"
@page "/products/{id:guid}"
@using EShopOnAbp.Localization
@using Microsoft.Extensions.Localization
@using System.Globalization

Loading…
Cancel
Save