Commit e912cb1
committed
Fix canonical URL generation for first page in pagination
The previous update to `setPaginationLinks` aimed to remove `?page=1` from the canonical URL on the first page but contained an error that caused the code to fail despite passing tests. This commit addresses the issue by fixing the logic to ensure the canonical link is corrected properly. Added thorough validation to ensure the functionality behaves as expected.1 parent 6b21fe0 commit e912cb1
File tree
2 files changed
+7
-3
lines changed- src/MetaTags/Concerns
- tests/MetaTags
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments