Skip to content

Commit

Permalink
Fixed broken redirects to elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Mosnar committed Jan 9, 2024
1 parent 4cde84b commit 001f81f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG-WIP.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Redirect Changelog

## Unreleased
## 4.0.0-beta.5 - 2024-01-09

### Fixed

- Fixed broken redirects on matched entries
- Fixed "title" placeholder not being filled in delete dialog.
- Fixed redirects to "/" not working properly


## 4.0.0-beta.4 - 2024-03-01
## 4.0.0-beta.4 - 2024-01-03

### Added

Expand Down
2 changes: 1 addition & 1 deletion src/services/Redirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public function doRedirect(Redirect $redirect, $uri)
$destinationUrl = null;

if ($redirect->type === Redirect::TYPE_STATIC) {
$processedUrl = $redirect->getDestinationUrl();
$processedUrl = $redirect->resolveDestinationUrl();
} elseif ($redirect->type === Redirect::TYPE_DYNAMIC) {
$sourceUrl = $redirect->sourceUrl;
// Add leading and trailing slashes for RegEx
Expand Down

0 comments on commit 001f81f

Please sign in to comment.