Fixed whitespaces in form action. The server had a problem with handling URIs

with whitespaces and trailing slashes ('/').
This commit is contained in:
Adrian
2019-02-07 11:30:58 +01:00
parent a8e1807a4d
commit bb93f0be00
3 changed files with 16 additions and 4 deletions
@@ -8,7 +8,11 @@
@section('content')
<h1>@yield('title')</h1>
<form action="/targets/@if (!is_null($personTarget->id)) {{ $personTarget->id }} @endif" method='post'>
@if (is_null($personTarget->id))
<form action='/targets' method='post'>
@else
<form action='/targets/{{ $personTarget->id }}' method='post'>
@endif
@if (!is_null($personTarget->id))
{{ method_field('patch') }}
@endif