1616use Rapidez \Statamic \Commands \InvalidateCacheCommand ;
1717use Rapidez \Statamic \Extend \SitesLinkedToMagentoStores ;
1818use Rapidez \Statamic \Forms \JsDrivers \Vue ;
19- use Rapidez \Statamic \Http \Controllers \ImportsController ;
2019use Rapidez \Statamic \Http \ViewComposers \StatamicGlobalDataComposer ;
2120use Rapidez \Statamic \Listeners \ClearNavTreeCache ;
2221use Rapidez \Statamic \Listeners \SetCollectionsForNav ;
23- use Rapidez \Statamic \Models \ProductAttribute ;
24- use Rapidez \Statamic \Models \ProductAttributeOption ;
2522use Rapidez \Statamic \Tags \Alternates ;
2623use Statamic \Events \GlobalSetDeleted ;
2724use Statamic \Events \GlobalSetSaved ;
3330use Statamic \Http \Controllers \FrontendController ;
3431use Statamic \Sites \Sites ;
3532use Statamic \StaticCaching \Middleware \Cache as StaticCache ;
33+ use Statamic \Http \Middleware \RedirectAbsoluteDomains ;
3634use TorMorten \Eventy \Facades \Eventy ;
3735use Statamic \Facades \Site as SiteFacade ;
3836use Statamic \View \Cascade as StatamicCascade ;
@@ -56,6 +54,7 @@ public function register()
5654 $ this ->app ->booted (function () {
5755 $ router = app (Router::class);
5856 $ router ->pushMiddlewareToGroup ('web ' , StaticCache::class);
57+ $ router ->pushMiddlewareToGroup ('web ' , RedirectAbsoluteDomains::class);
5958 });
6059 $ this ->app ->afterBootstrapping (BootProviders::class, function () {
6160 // Prevent infinite locks by removing the static cache from the statamic.web middleware.
0 commit comments