diff --git a/frontend/components/Admin.vue b/frontend/components/Admin.vue
index 3eb7217..28bccc5 100644
--- a/frontend/components/Admin.vue
+++ b/frontend/components/Admin.vue
@@ -7,7 +7,9 @@
diff --git a/frontend/components/ui/ProductCard.vue b/frontend/components/ui/ProductCard.vue
index cb062a0..fb93ba2 100644
--- a/frontend/components/ui/ProductCard.vue
+++ b/frontend/components/ui/ProductCard.vue
@@ -40,7 +40,11 @@ export default {
product: {
type: Object,
required: true
- }
+ },
+ to: {
+ type: String,
+ required: false
+ }
},
data() {
return {
@@ -64,7 +68,7 @@ export default {
store.dispatch('cartModule/addItemToCart', { ...this.product });
},
viewProduct() {
- this.$router.push('/shop/' + this.product.urlSlug)
+ this.$router.push(this.to ? this.to : '/shop/' + this.product.urlSlug)
}
}
}