redirect-bundle icon indicating copy to clipboard operation
redirect-bundle copied to clipboard

4.x ideas

Open kbond opened this issue 2 years ago • 1 comments

  • Rich models (cannot be created in an invalid state)
  • RedirectDto to 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 Redirect stats
  • Option to use messenger to create/update NotFound
  • NotFound changes
    • split into:
      • SimpleNotFound: single row for each source with count/last accessed
      • AdvancedNotFound: row for every 404 occurrence (same as 3.x)
    • new config options:
      • absolute (false by default): include domain/scheme in source
      • include_query (false by default): include query in source

kbond avatar Nov 08 '23 19:11 kbond

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.

tacman avatar Jun 10 '24 11:06 tacman