Fixed whitespaces in form action. The server had a problem with handling URIs
with whitespaces and trailing slashes ('/').
This commit is contained in:
@@ -8,7 +8,11 @@
|
||||
|
||||
@section('content')
|
||||
<h1>@yield('title')</h1>
|
||||
<form action="/people/@if (!is_null($person->id)) {{ $person->id }} @endif" method='post'>
|
||||
@if (is_null($person->id))
|
||||
<form action='/people' method='post'>
|
||||
@else
|
||||
<form action='/people/{{ $person->id }}' method='post'>
|
||||
@endif
|
||||
@if (!is_null($person->id))
|
||||
{{ method_field('patch') }}
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user