@@ -101,7 +101,7 @@ class MerchantController extends AdminController | |||
$em->flush(); | |||
} | |||
} | |||
return $this->redirect('admin/dashboard') ; | |||
return $this->redirect('/admin/dashboard') ; | |||
} | |||
} |
@@ -1,6 +1,6 @@ | |||
switch_merchant: | |||
path: /switch-merchant | |||
admin_switch_merchant: | |||
path: /admin/switch-merchant | |||
controller: Lc\ShopBundle\Controller\Admin\MerchantController::switchMerchantAction | |||
lc_api: |
@@ -74,7 +74,7 @@ | |||
<div id="switch-merchant"> | |||
{% if is_granted('ROLE_ADMIN') %} | |||
<form action="{{ path('switch_merchant') }}" method="post"> | |||
<form action="{{ path('admin_switch_merchant') }}" method="post"> | |||
<select class="form-control" name="id_merchant"> | |||
{% for merchant in merchants %} | |||
<option value="{{merchant.id}}" {% if current_merchant and current_merchant.id == merchant.id %}selected="selected"{% endif %}>{{merchant.title}}</option> |