Skip to content

Commit e720767

Browse files
committed
Merge branch 'release/4.1.25' into v4
2 parents 102db93 + da89c6b commit e720767

File tree

70 files changed

+732
-702
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+732
-702
lines changed

CHANGELOG.md

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

3+
## 4.1.25 - 2024.04.03
4+
### Changed
5+
* Only look at adding site prefixes to `pathonly` redirects via GraphQL
6+
7+
### Fixed
8+
* Fixed an issue with Postgres throwing a `PDOException` ([#336](https://github.com/nystudio107/craft-retour/issues/336))
9+
310
## 4.1.24 - 2025.03.05
411
### Fixed
512
* Fixed an issue where redirects with a path site prefix were processed in the wrong order, and might not work as expected

buildchain/package-lock.json

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

buildchain/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"vite-plugin-checker": "^0.8.0",
4949
"vite-plugin-compression": "^0.5.0",
5050
"vite-plugin-externals": "^0.6.0",
51-
"vite-plugin-restart": "^0.4.0",
5251
"vue-tsc": "^2.0.0"
5352
},
5453
"scripts": {

buildchain/stylelint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
export default {
33
"extends": [
44
"stylelint-config-recommended",
5-
"stylelint-config-standard-scss"
5+
"stylelint-config-standard-scss",
6+
"stylelint-config-recommended-vue"
67
],
78
"rules": {
89
// For TailwindCSS @apply directive

buildchain/vite.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import tailwindcss from "@tailwindcss/vite";
55
import {visualizer} from 'rollup-plugin-visualizer';
66
import viteCompressionPlugin from 'vite-plugin-compression';
77
import {viteExternalsPlugin} from 'vite-plugin-externals';
8-
import viteRestartPlugin from 'vite-plugin-restart';
98
import * as path from 'path';
109

1110
// https://vitejs.dev/config/
@@ -28,11 +27,6 @@ export default defineConfig(({command}) => ({
2827
sourcemap: true
2928
},
3029
plugins: [
31-
viteRestartPlugin({
32-
reload: [
33-
'../src/templates/**/*',
34-
],
35-
}),
3630
createVuePlugin(),
3731
viteExternalsPlugin({
3832
'vue': 'Vue',

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.24",
5+
"version": "4.1.25",
66
"keywords": [
77
"craftcms",
88
"craft-plugin",

docs/package-lock.json

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

src/gql/resolvers/RetourResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function resolve(mixed $source, array $arguments, mixed $context,
7676
Retour::$plugin->statistics->incrementStatistics($uri, false, $siteId);
7777
}
7878
}
79-
if ($redirect !== null && isset($redirect['redirectDestUrl'])) {
79+
if ($redirect !== null && isset($redirect['redirectDestUrl']) && $redirect['redirectSrcMatch'] === 'pathonly') {
8080
$dest = $redirect['redirectDestUrl'];
8181
$path = $redirect['redirectDestUrl'];
8282
// Combine the URL and path together, merging them as appropriate

src/services/Redirects.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ public function getStaticRedirect(string $fullUrl, string $pathOnly, $siteId, bo
508508
->limit(1);
509509

510510
if ($enabledOnly) {
511-
$query->andWhere(['enabled' => 1]);
511+
$query->andWhere(['enabled' => true]);
512512
}
513513
$result = $query->one();
514514
if ($result) {
@@ -1309,7 +1309,7 @@ protected function getRedirectsByMatchType(int $limit = null, int $siteId = null
13091309
$query->andWhere(['redirectMatchType' => $type]);
13101310

13111311
if ($enabledOnly) {
1312-
$query->andWhere(['enabled' => 1]);
1312+
$query->andWhere(['enabled' => true]);
13131313
}
13141314

13151315
return $query->all();
-587 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)