Skip to content

Commit

Permalink
Merge branch 'release/4.0.21' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 9, 2025
2 parents 580d455 + d8bf270 commit 7d76f7b
Show file tree
Hide file tree
Showing 48 changed files with 3,892 additions and 3,637 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Retour Changelog

## 4.0.21 - 2025.01.08
### Changed
* Fixed an issue where a GraphQL Retour query could return a URL with a `/` prefixed to it if the destination was a full URL ([#320](https://github.com/nystudio107/craft-retour/issues/320))

## 4.1.20 - 2024.12.14
### Changed
* Retour now strips site path prefixes from incoming 404 URL paths, such that redirects will work as expected (any Site sub-path prefix is ignored) ([#288](https://github.com/nystudio107/craft-retour/issues/288))
Expand Down
2 changes: 1 addition & 1 deletion buildchain/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TAG=20-alpine
FROM node:$TAG

RUN npm install -g npm@^10.0.0
RUN npm install -g npm@^11.0.0

WORKDIR /app/buildchain/

Expand Down
304 changes: 167 additions & 137 deletions buildchain/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-retour",
"description": "Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website",
"type": "craft-plugin",
"version": "4.1.20",
"version": "4.1.21",
"keywords": [
"craftcms",
"craft-plugin",
Expand Down
2 changes: 1 addition & 1 deletion docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG TAG=20-alpine
FROM node:$TAG

RUN npm install -g npm@^10.0.0
RUN npm install -g npm@^11.0.0

WORKDIR /app/

Expand Down
1,080 changes: 597 additions & 483 deletions docs/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/gql/resolvers/RetourResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function resolve(mixed $source, array $arguments, mixed $context,
$path = $redirect['redirectDestUrl'];
// Combine the URL and path together, merging them as appropriate
try {
if (!UrlHelper::pathHasSitePrefix($path)) {
if (!UrlHelper::isFullUrl($dest) && !UrlHelper::pathHasSitePrefix($path)) {
$dest = UrlHelper::siteUrl('/', null, null, $siteId);
$dest = UrlHelper::mergeUrlWithPath($dest, $path);
$dest = parse_url($dest, PHP_URL_PATH);
Expand Down
Binary file removed src/web/assets/dist/assets/dashboard-Cd8Jof-e.js.gz
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Binary file removed src/web/assets/dist/assets/purify.es-T1dZ8B5N.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 7d76f7b

Please sign in to comment.