- You can now add
site
as a column for imports site
is added to the CSV and JSON exports- Allow v2.0 for spatie/simple-excel
- Fix #77 - Use default site if no site is found
- Fix #75 - Redirect site filter was overriding default site filter
- Update dependency prettier to v2.6.2 by @renovate in #70
- FIX The redirect is automatically deleted for Drafts by @OleksiiBrylin in #74
- @OleksiiBrylin made their first contribution in #74
Full Changelog: https://github.com/riasvdv/statamic-redirect/compare/2.3.3...2.3.4
- Automatically add a .gitignore in the storage/redirect folder the first time we create the database
- Fix selected site not saving correctly to redirect
- A Redirect's site can be switched by switching the site at the top of the page when updating a Redirect
- Fix exception on entry saved
- Add multisite support
- Adds support for Statamic 3.2 again
- The config file has been restructured make sure to publish it again using:
php artisan vendor:publish --tag=statamic-redirect-config --force
- You can no longer choose between Eloquent and Stache for storing Redirects, these are considered content so are currently always Stache.
- You can no longer choose to store errors & hits inside the Stache, there's just no way to keep this performant.
- Errors & hits are now stored inside a local sqlite database which improves performance and allows thousands of errors & hits to be stored without any performance issues.
- We only show the warning that the schedule hasn't run on non-local environments
- The stats graphs have been improved a bit
- Fix an issue caused by Statamic 3.2.31
- Fix the update script
- Handle trailing slashes correctly
- Fixed a visual bug when having really long urls on the redirects page
Updating to this version will clear your errors
- Added a warning when the cleanup command hasn't run for more than a day (it should be running every day)
- Restructured how hits are stored, this should improve performance.
- Added a detail view for an error that displays the hits
- Added a "Clear all" button for errors
- Added a "Delete error" button on the detail view of an error
- Fixed the import failing sometimes with a file not found exception
- Added a
enable
config value to enable/disable the addon. - Turning off
log_hits
will still keep a log of the number of hits. Also fixed a dashboard issue when this config was turned off.
- Statamic Redirect now ships with 2 Eloquent providers for the Errors & Redirects
- Fixed an isssue when trying to delete redirects on a paginated listing.
- Fix wrong default paths
- Allows to customize the store paths (#27)
- Fix route cache issue with duplicate name
- Import functionality! You can now import redirects from a CSV file.
- We now require at least PHP 7.4.
- Errors are now stored in folders according to their id, similar to how Laravel stores its cache files. This should improve performance.
- You can now disable logging individual hits on each error.
- The listing now breaks up long urls.
- Corrupted yaml files won't break the functionality anymore. The dashboard & clean command will keep working.
- An error's hits can now be 0.
- Fix the handled destination not being shown in the error listing.
- Fix an issue with deleting redirects
- Fix 410 status when a redirect is cached
- Actually fix handling of the 410 Gone status
- Fix handling of the 410 Gone status
- Fixed an issue where query parameters were ignored
- Fix pagination on redirects listing
- Account for trailing slashes in redirects
- You can now disable logging of errors by setting the
log_errors
config value tofalse
- Fix composer dependencies
- Fix exception when an error has no hits
- Added better Error cleaning, with 2 new config options:
clean_errors_on_save
andkeep_unique_errors
which will clean errors when a new one is added and only keep a set amount of unique errors, deleting the oldest ones first. If you have configured a queue the cleaning will take place on the queue. - The
php please redirect:clean-errors
command now also takes into account the unique errors count.
- Add permissions for viewing, creating, editing and deleting redirects
- Add metadata (user agent, referer & ip) when hovering over the error path
- Add redirects export to JSON or CSV
- Fix incorrect typehint in RedirectController
- Filters and search for the Error and Redirect listings!
- Errors and Redirects now use the Stache, which makes loading & querying faster.
- Automatic redirects weren't working properly
- The config file had the wrong tag, it can now be published using the
statamic-redirect-config
tag.
- Introduced caching for redirects, consequent 404 hits will not trigger a new lookup into the Redirect storage
- Refactored the code so we can add Eloquent database storage in the future for errors & redirects
- This addon! 🎉