Skip to content

Commit 2aebc55

Browse files
authored
In localizeUrl('(/test)'), the () is redundant (#786)
In `localizeUrl('(/test)')`, the `()` is redundant. It will generate url like `https://host/en/(/test)`.
1 parent a3d429d commit 2aebc55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ aswell as the `hideDefaultLocaleInURL` and [Translated Routes](#translated-route
217217

218218
```php
219219
// If current locale is Spanish, it returns `/es/test`
220-
<a href="{{ LaravelLocalization::localizeUrl('(/test)') }}">@lang('Follow this link')</a>
220+
<a href="{{ LaravelLocalization::localizeUrl('/test') }}">@lang('Follow this link')</a>
221221
```
222222

223223
#### Get localized URL for an specific locale

0 commit comments

Comments
 (0)