mirror of
https://github.com/flarum/core.git
synced 2025-07-31 21:50:50 +02:00
Remove HTTP method from generated URLs
This commit is contained in:
@@ -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)) {
|
||||||
|
Reference in New Issue
Block a user