Skip to content

Commit

Permalink
Make automatic entry creation exact
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Sep 28, 2024
1 parent e329ac2 commit c3cba53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Listeners/CreateRedirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function handle(EntrySaved $entrySaved)

Redirect::make()
->locale($entry->locale())
->source($oldUri . '(.*)')
->destination($entry->uri() . '$1')
->matchType(MatchTypeEnum::REGEX)
->source($oldUri)
->destination($entry->uri())
->matchType(MatchTypeEnum::EXACT)
->save();
}
}

0 comments on commit c3cba53

Please sign in to comment.