Skip to content

Commit

Permalink
Merge pull request #1913 from acelaya-forks/feature/fix-delete-multi-…
Browse files Browse the repository at this point in the history
…segment-visits

Fix short URL visits deletion when multi-segment slugs are enabled
  • Loading branch information
acelaya authored Nov 8, 2023
2 parents 85b5f76 + 8d35c1d commit d6fedaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
### Fixed
* [#1819](https://github.com/shlinkio/shlink/issues/1819) Fix incorrect timeout when running DB commands during Shlink start-up.
* [#1901](https://github.com/shlinkio/shlink/issues/1901) Do not allow short URLs with custom slugs containing URL-reserved characters, as they will not work at all afterward.
* [#1900](https://github.com/shlinkio/shlink/issues/1900) Fix short URL visits deletion when multi-segment slugs are enabled.


## [3.6.4] - 2023-09-23
Expand Down
6 changes: 4 additions & 2 deletions config/autoload/routes.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
...ConfigProvider::applyRoutesPrefix([
Action\HealthAction::getRouteDef(),

// Visits
// Visits.
// These routes must go first, as they have a more specific path, otherwise, when multi-segment slugs
// are enabled, routes with a less-specific path might match first
Action\Visit\ShortUrlVisitsAction::getRouteDef([$dropDomainMiddleware]),
Action\ShortUrl\DeleteShortUrlVisitsAction::getRouteDef([$dropDomainMiddleware]),
Action\Visit\TagVisitsAction::getRouteDef(),
Action\Visit\DomainVisitsAction::getRouteDef(),
Action\Visit\GlobalVisitsAction::getRouteDef(),
Expand All @@ -54,7 +57,6 @@
]),
Action\ShortUrl\EditShortUrlAction::getRouteDef([$dropDomainMiddleware]),
Action\ShortUrl\DeleteShortUrlAction::getRouteDef([$dropDomainMiddleware]),
Action\ShortUrl\DeleteShortUrlVisitsAction::getRouteDef([$dropDomainMiddleware]),
Action\ShortUrl\ResolveShortUrlAction::getRouteDef([$dropDomainMiddleware]),
Action\ShortUrl\ListShortUrlsAction::getRouteDef(),

Expand Down

0 comments on commit d6fedaf

Please sign in to comment.