Skip to content

Commit

Permalink
URL::to
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 24, 2015
1 parent 3c06d07 commit 2bfca8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/views/public/_languages-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="nav nav-pills">
@foreach ($languagesMenu as $item)
<li class="{{ $item->class }}">
<a href="/{{ $item->lang }}">{{ $item->lang }}</a>
<a href="{{ URL::to($item->lang) }}">{{ $item->lang }}</a>
</li>
@endforeach
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/public/lang-chooser.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

@foreach ($locales as $locale)

<a href="/{{ $locale }}" class="btn btn-default btn-lg">{{ trans('db.languages.'.$locale) }}</a>
<a href="{{ URL::to($locale) }}" class="btn btn-default btn-lg">{{ trans('db.languages.'.$locale) }}</a>

@endforeach

Expand Down

0 comments on commit 2bfca8b

Please sign in to comment.