Skip to content

Commit 102db93

Browse files
committed
Merge branch 'release/4.1.24' into v4
2 parents 68644d5 + 4066650 commit 102db93

40 files changed

+1005
-804
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Retour Changelog
22

3+
## 4.1.24 - 2025.03.05
4+
### Fixed
5+
* Fixed an issue where redirects with a path site prefix were processed in the wrong order, and might not work as expected
6+
* Fixed a logic error where query parameters with duplicate values could be removed from the resulting destination URL
7+
* Destination URLs are no longer URL decoded _unless_ a malicious payload was stripped from them ([#330](https://github.com/nystudio107/craft-retour/issues/330))
8+
39
## 4.1.23 - 2025.02.12
410
### Changed
511
* Update buildchain to Vite 6 & Tailwind CSS 4

buildchain/package-lock.json

Lines changed: 568 additions & 429 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

buildchain/src/css/pages/import.css

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,41 @@
66
*/
77

88
.retour-import-list-group-item {
9-
position: relative;
10-
display: block;
11-
padding: 10px 15px;
12-
margin-bottom: -1px;
13-
background-color: #fff;
14-
border: 1px solid #ddd;
15-
cursor: move;
9+
position: relative;
10+
display: block;
11+
padding: 10px 15px;
12+
margin-bottom: -1px;
13+
background-color: #fff;
14+
border: 1px solid #ddd;
15+
cursor: move;
1616
}
1717

1818
.retour-import-field-group-item {
19-
position: relative;
20-
display: block;
21-
padding: 10px 15px;
22-
margin-bottom: -1px;
23-
background-color: #fff;
24-
border: 1px solid #ddd;
25-
cursor: arrow;
19+
position: relative;
20+
display: block;
21+
padding: 10px 15px;
22+
margin-bottom: -1px;
23+
background-color: #fff;
24+
border: 1px solid #ddd;
25+
cursor: default;
2626
}
2727

2828
.retour-import-arrow-item {
29-
position: relative;
30-
display: block;
31-
padding: 11px 15px;
29+
position: relative;
30+
display: block;
31+
padding: 11px 15px;
3232
}
3333

3434
.retour-import-drag-area {
35-
min-height: 100px;
35+
min-height: 100px;
3636
}
3737

3838
.retour-empty-item {
39-
background:
40-
repeating-linear-gradient(
41-
-55deg,
42-
#ddd,
43-
#ddd 10px,
44-
#eee 10px,
45-
#eee 20px
39+
background: repeating-linear-gradient(
40+
-55deg,
41+
#ddd,
42+
#ddd 10px,
43+
#eee 10px,
44+
#eee 20px
4645
);
4746
}

buildchain/src/css/tailwind-config.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
@import "tailwindcss/theme.css";
1515
@import "tailwindcss/utilities.css";
16-
1716
@config "../../tailwind.config.ts";
1817
@source "../../../src/templates";
1918
@source "../.././node_modules/vuetable-2/src/components/";

buildchain/stylelint.config.js

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,61 @@ export default {
55
"stylelint-config-standard-scss"
66
],
77
"rules": {
8+
// For TailwindCSS @apply directive
9+
"at-rule-no-deprecated": [
10+
true,
11+
{
12+
"ignoreAtRules": [
13+
"apply"
14+
],
15+
}
16+
],
17+
// For TailwindCSS theme() function properties
18+
"declaration-property-value-no-unknown": [
19+
true,
20+
{
21+
"ignoreProperties": {
22+
"/.+/": "/^.*?theme/"
23+
}
24+
},
25+
],
26+
// For TailwindCSS theme() function
27+
"function-no-unknown": [
28+
true,
29+
{
30+
"ignoreFunctions": [
31+
"screen",
32+
"theme"
33+
]
34+
},
35+
],
836
"scss/at-rule-no-unknown": [
937
true,
1038
{
39+
// For TailwindCSS custom @ directives
1140
"ignoreAtRules": [
1241
"theme",
1342
"source",
1443
"utility",
1544
"variant",
1645
"custom-variant",
46+
"plugin",
47+
"tailwind",
1748
"apply",
18-
"reference",
49+
"layer",
1950
"config",
20-
"plugin",
51+
"variants",
52+
"responsive",
53+
"screen"
2154
]
2255
}
2356
],
57+
"no-descending-specificity": null,
2458
"no-invalid-position-at-import-rule": null,
59+
"import-notation": null,
2560
"block-no-empty": null,
2661
"selector-id-pattern": null,
2762
"selector-class-pattern": null,
28-
"no-descending-specificity": null,
2963
"font-family-no-missing-generic-family-keyword": null
3064
}
3165
}

buildchain/vite.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,10 @@ export default defineConfig(({command}) => ({
5757
}
5858
},
5959
stylelint: {
60-
lintCommand: 'stylelint ./src/**/*.{css} --allow-empty-input --fix',
60+
lintCommand: 'stylelint ./src/**/*.{css,scss,sass,pcss} --fix',
6161
dev: {
6262
overrideConfig: {
63-
allowEmptyInput: true,
6463
cache: true,
65-
fix: false
6664
}
6765
}
6866
},
@@ -84,7 +82,7 @@ export default defineConfig(({command}) => ({
8482
// Allow cross-origin requests -- https://github.com/vitejs/vite/security/advisories/GHSA-vg6x-rcgg-rjx6
8583
allowedHosts: true,
8684
cors: {
87-
origin: /https?:\/\/([A-Za-z0-9\-\.]+)?(localhost|\.local|\.test|\.site)(?::\d+)?$/
85+
origin: /https?:\/\/([A-Za-z0-9\-\.]+)?(localhost|\.local|\.test|\.ddev\.site)(?::\d+)?$/
8886
},
8987
fs: {
9088
strict: false

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nystudio107/craft-retour",
33
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
44
"type": "craft-plugin",
5-
"version": "4.1.23",
5+
"version": "4.1.24",
66
"keywords": [
77
"craftcms",
88
"craft-plugin",

0 commit comments

Comments
 (0)