redirect-bundle
redirect-bundle copied to clipboard
4.x ideas
- Rich models (cannot be created in an invalid state)
RedirectDtoto be used by the form type (will require a custom unique entity validator until https://github.com/symfony/symfony/pull/38662 is available)- Option to use messenger to update
Redirectstats - Option to use messenger to create/update
NotFound NotFoundchanges- split into:
SimpleNotFound: single row for each source with count/last accessedAdvancedNotFound: row for every 404 occurrence (same as 3.x)
- new config options:
absolute(false by default): include domain/scheme in sourceinclude_query(false by default): include query in source
- split into:
Expand the idea of this bundle to include not just redirects and Not Found, but also "found" pages/entities/calls.
I've been using https://github.com/tchoulom/ViewCounterBundle to track page visits, but it's really more than page visits, because sometimes I need to track certain types of JSON calls (e.g. fetch this data from api-platform and reload it via javascript is a "page view"). That bundle needs to handle it's tracking via dispatching a message, currently the view count slows down the site by updating the database in the page handler.
It might be outside the scope of this bundle, but since this is the "ideas" thread, I thought I'd post it.