File tree Expand file tree Collapse file tree 4 files changed +215
-224
lines changed Expand file tree Collapse file tree 4 files changed +215
-224
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ Optional plugin:
17
17
18
18
The current release has been tested and is confirmed working with the following versions:
19
19
20
- - WordPress version 5.5.3
20
+ - WordPress version 5.6.0
21
21
- WooCommerce version 4.8.0
22
- - WP GraphQL version 1.0.3
22
+ - WP GraphQL version 1.0.5
23
23
- WooGraphQL version 0.6.1
24
24
25
25
2 . For debugging and testing, install either:
Original file line number Diff line number Diff line change @@ -30,7 +30,11 @@ const IndexProducts = ({ products }) => {
30
30
key = { uuidv4 ( ) }
31
31
className = "flex flex-col p-6 md:w-1/2 xl:w-1/4"
32
32
>
33
- < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ databaseId } ` } >
33
+ < Link
34
+ href = { `/produkt/${ encodeURIComponent (
35
+ slug
36
+ ) } ?id=${ encodeURIComponent ( databaseId ) } `}
37
+ >
34
38
< a >
35
39
{ image ? (
36
40
< img
@@ -49,7 +53,12 @@ const IndexProducts = ({ products }) => {
49
53
) }
50
54
</ a >
51
55
</ Link >
52
- < Link href = "/produkt/[post]" as = { `/produkt/${ slug } ?id=${ databaseId } ` } >
56
+
57
+ < Link
58
+ href = { `/produkt/${ encodeURIComponent (
59
+ slug
60
+ ) } ?id=${ encodeURIComponent ( databaseId ) } `}
61
+ >
53
62
< a >
54
63
< div className = "flex justify-center pt-3" >
55
64
< p className = "font-bold text-center cursor-pointer" >
@@ -58,7 +67,6 @@ const IndexProducts = ({ products }) => {
58
67
</ div >
59
68
</ a >
60
69
</ Link >
61
-
62
70
{ /* Display sale price when on sale */ }
63
71
{ onSale && (
64
72
< >
You can’t perform that action at this time.
0 commit comments