<a class="btn btn-warning" href="ClientPage/{{ $client->id }}"> View</a>
http://localhost:9090/S2/public/VLead/ClientPage/17
但是应该是正确的
http://localhost:9090/S2/public/ClientPage/17
所以我需要从href中删除VLead我点击id}}“>查看
看起来你在VLead
页面上。如果你使用href="ClientPage/{{ $client->id }}"
,它会将当前页面保留在url中。将href更改为/public/ClientPage/{{ $client->id }}
以解决此问题。
和@linktoahref指出我建议你使用url()或route()函数