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
@@ -1,12 +1,16 @@
@extends('layout.master')
@section('subnav')
<a href='{{ url()->previous() }}'>Zurück</a>
<a href='{{ url()->previous() }}' class='btn btn-outline-primary'>Zurück</a>
@endsection
@section('content')
<h3>@yield('title')</h3>
<form action="/projects/@if (!is_null($project->id)) {{ $project->id }} @endif" method='post'>
@if (is_null($project->id))
<form action='/projects' method='post'>
@else
<form action='/projects/{{$project->id}}' method='post'>
@endif
@if (!is_null($project->id))
{{ method_field('patch') }}
@endif