Fix: "Open" button in admin panel now uses correct root path.

This commit is contained in:
baldo 2017-05-13 12:40:46 +02:00
parent b13cd297f8
commit aca1fd520a

View file

@ -173,7 +173,7 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
.listActions(
'<ma-edit-button entry="entry" entity="entity" size="sm"></ma-edit-button> ' +
'<ma-delete-button entry="entry" entity="entity" size="sm"></ma-delete-button> ' +
'<form style="display: inline-block" action="/#/update" method="POST" target="_blank">' +
'<form style="display: inline-block" action="' + pathPrefix + '/#/update" method="POST" target="_blank">' +
'<input type="hidden" name="token" value="{{entry.values.token}}"/>' +
'<button class="btn btn-primary btn-sm" type="submit"><i class="fa fa-external-link"></i> Open</button>' +
'</form> ' +