Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e66557f

Browse files
authored
Redirect domains ending with a dot (#140)
1 parent 5a6c34c commit e66557f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"rapidez/sitemap": "^3.0",
3838
"spatie/once": "*",
3939
"statamic-rad-pack/runway": "^8.3",
40-
"statamic/cms": "^5.47",
40+
"statamic/cms": "^5.55",
4141
"statamic/eloquent-driver": "^4.9",
4242
"tdwesten/statamic-builder": "^1.0",
4343
"tormjens/eventy": "^0.8"

src/RapidezStatamicServiceProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
use Rapidez\Statamic\Commands\InvalidateCacheCommand;
1717
use Rapidez\Statamic\Extend\SitesLinkedToMagentoStores;
1818
use Rapidez\Statamic\Forms\JsDrivers\Vue;
19-
use Rapidez\Statamic\Http\Controllers\ImportsController;
2019
use Rapidez\Statamic\Http\ViewComposers\StatamicGlobalDataComposer;
2120
use Rapidez\Statamic\Listeners\ClearNavTreeCache;
2221
use Rapidez\Statamic\Listeners\SetCollectionsForNav;
23-
use Rapidez\Statamic\Models\ProductAttribute;
24-
use Rapidez\Statamic\Models\ProductAttributeOption;
2522
use Rapidez\Statamic\Tags\Alternates;
2623
use Statamic\Events\GlobalSetDeleted;
2724
use Statamic\Events\GlobalSetSaved;
@@ -33,6 +30,7 @@
3330
use Statamic\Http\Controllers\FrontendController;
3431
use Statamic\Sites\Sites;
3532
use Statamic\StaticCaching\Middleware\Cache as StaticCache;
33+
use Statamic\Http\Middleware\RedirectAbsoluteDomains;
3634
use TorMorten\Eventy\Facades\Eventy;
3735
use Statamic\Facades\Site as SiteFacade;
3836
use 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

Comments
 (0)