mirror of
https://github.com/flarum/framework.git
synced 2025-01-23 17:19:28 +08:00
Remove HTTP method from generated URLs
This commit is contained in:
parent
fed3c2ebd1
commit
2a713ccb67
|
@ -80,6 +80,7 @@ class Router
|
||||||
public function getPath($name, $parameters = [])
|
public function getPath($name, $parameters = [])
|
||||||
{
|
{
|
||||||
$parts = $this->reverse[$name];
|
$parts = $this->reverse[$name];
|
||||||
|
array_forget($parts, 'method');
|
||||||
|
|
||||||
$path = implode('', array_map(function ($part) use ($parameters) {
|
$path = implode('', array_map(function ($part) use ($parameters) {
|
||||||
if (is_array($part)) {
|
if (is_array($part)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user