From 5e2b266793cbb10db189034ab473c444e60bd409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Janczak?= Date: Wed, 3 Jun 2026 13:58:09 +0200 Subject: [PATCH] Allow route prefix to be empty for root domain short URLs --- .../Resources/ShortUrlResource/Pages/ShortUrlSettingsPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filament/Resources/ShortUrlResource/Pages/ShortUrlSettingsPage.php b/src/Filament/Resources/ShortUrlResource/Pages/ShortUrlSettingsPage.php index 4f70ce9..316aa29 100644 --- a/src/Filament/Resources/ShortUrlResource/Pages/ShortUrlSettingsPage.php +++ b/src/Filament/Resources/ShortUrlResource/Pages/ShortUrlSettingsPage.php @@ -146,7 +146,7 @@ class ShortUrlSettingsPage extends Page implements HasForms ->label(__('filament-short-url::default.settings_route_prefix')) ->helperText(__('filament-short-url::default.settings_route_prefix_helper')) ->prefix(new HtmlString('https://'.request()->getHost().'/')) - ->required() + ->nullable() ->alphaDash() ->maxLength(20),