From 5d243d3be67046df598ebb5087a97533c8cc1386 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Thu, 8 Sep 2022 16:41:10 +0200 Subject: [PATCH] (feat) change store cart url --- app/frontend/src/javascript/components/cart/cart-button.tsx | 2 +- app/frontend/src/javascript/router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/javascript/components/cart/cart-button.tsx b/app/frontend/src/javascript/components/cart/cart-button.tsx index c9fbf8789..b9e2b3029 100644 --- a/app/frontend/src/javascript/components/cart/cart-button.tsx +++ b/app/frontend/src/javascript/components/cart/cart-button.tsx @@ -22,7 +22,7 @@ const CartButton: React.FC = () => { * Goto cart page */ const showCart = () => { - window.location.href = '/#!/cart'; + window.location.href = '/#!/store/cart'; }; return ( diff --git a/app/frontend/src/javascript/router.js b/app/frontend/src/javascript/router.js index f149be320..34f9c9502 100644 --- a/app/frontend/src/javascript/router.js +++ b/app/frontend/src/javascript/router.js @@ -633,7 +633,7 @@ angular.module('application.router', ['ui.router']) // cart .state('app.public.cart', { - url: '/cart', + url: '/store/cart', views: { 'main@': { templateUrl: '/cart/index.html',