diff --git a/packages/playground/website/src/components/address-bar/index.tsx b/packages/playground/website/src/components/address-bar/index.tsx index d8eb0c60f3..01d1d56181 100644 --- a/packages/playground/website/src/components/address-bar/index.tsx +++ b/packages/playground/website/src/components/address-bar/index.tsx @@ -19,12 +19,7 @@ export default function AddressBar({ url, onUpdate }: AddressBarProps) { const handleSubmit = useCallback( function (e: React.FormEvent) { e.preventDefault(); - let requestedPath = input.current!.value; - // Ensure a trailing slash when requesting directory paths - const isDirectory = !requestedPath.split('/').pop()!.includes('.'); - if (isDirectory && !requestedPath.endsWith('/')) { - requestedPath += '/'; - } + const requestedPath = input.current!.value; onUpdate?.(requestedPath); input.current!.blur(); },