Allow LegacyPlugin Pages to receive all parameters (#13519)

This commit is contained in:
PipoCanaja 2021-11-15 09:30:50 +01:00 committed by GitHub
parent 7e98e03338
commit 193535871f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,7 +83,7 @@ Route::group(['middleware' => ['auth'], 'guard' => 'auth'], function () {
Route::get('plugin', 'PluginLegacyController@redirect');
Route::redirect('plugin/view=admin', '/plugin/admin');
Route::get('plugin/p={pluginName}', 'PluginLegacyController@redirect');
Route::any('plugin/v1/{plugin:plugin_name}', 'PluginLegacyController')->name('plugin.legacy');
Route::any('plugin/v1/{plugin:plugin_name}/{other?}', 'PluginLegacyController')->where('other', '(.*)')->name('plugin.legacy');
Route::get('plugin/{plugin:plugin_name}', 'PluginPageController')->name('plugin.page');
// old route redirects