mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Remove HTTP method from generated URLs
This commit is contained in:
@@ -80,6 +80,7 @@ class Router
|
||||
public function getPath($name, $parameters = [])
|
||||
{
|
||||
$parts = $this->reverse[$name];
|
||||
array_forget($parts, 'method');
|
||||
|
||||
$path = implode('', array_map(function ($part) use ($parameters) {
|
||||
if (is_array($part)) {
|
||||
|
Reference in New Issue
Block a user