chao 3 vuotta sitten
vanhempi
commit
6d8f675da8

+ 2 - 2
src/main/resources/templates/index.html

@@ -226,14 +226,14 @@
                                                     </div>
                                                     <div class="product-thumb">
                                                         <div class="thumb-inner">
-                                                            <a th:href="'product/'+${pros.get('product').get('productId')}+'.html'">
+                                                            <a th:href="'/product/'+${pros.get('product').get('productId')}+'.html'">
                                                                 <img th:attr="src=*{image}">
                                                             </a>
                                                         </div>
                                                     </div>
                                                     <div class="product-info">
                                                         <h5 class="product-name product_title">
-                                                            <a th:href="'product/'+${pros.get('product').get('productId')}+'.html'" th:text="${pros.get('name')}"></a>
+                                                            <a th:href="'/product/'+${pros.get('product').get('productId')}+'.html'" th:text="${pros.get('name')}"></a>
                                                         </h5>
                                                         <div class="group-info">
                                                             <div class="stars-rating">

+ 2 - 2
src/main/resources/templates/list.html

@@ -20,14 +20,14 @@
 <!--                        </div>-->
                         <div class="product-thumb">
                             <div class="thumb-inner">
-                                <a th:href="'product/'+*{productId}+'.html'">
+                                <a th:href="'/product/'+*{productId}+'.html'">
                                     <img th:attr="src=*{image}">
                                 </a>
                             </div>
                         </div>
                         <div class="product-info">
                             <h5 class="product-name product_title">
-                                <a href="/product/6821.html" th:text="*{name}"></a>
+                                <a th:href="'/product/'+*{productId}+'.html'" th:text="*{name}"></a>
                             </h5>
                             <div class="group-info">
                                 <div class="stars-rating">