mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
b7476f2a46
The `%s` parent ID placeholder was being URL encoded, so it was not being replaced properly when adding a new page. This fix separately adds placeholder parameters to the URL to avoid this issue. The fix is not ideal, but there is no easy way to indicate that some URL parameters should be URL encoded and others should not while still correctly constructing the URL.
6 lines
413 B
Scheme
6 lines
413 B
Scheme
<div class="cms-actions-row">
|
|
<a class="cms-page-add-button ss-ui-button ss-ui-action-constructive" data-icon="add" href="$LinkPageAdd" data-url-addpage="{$LinkPageAdd('', 'ParentID=%s')}"><% _t('CMSMain.AddNewButton', 'Add new') %></a>
|
|
<button href="$LinkPagesWithSearch" class="cms-tree-expand-trigger cms-panel-link ss-button" data-icon="pencil">
|
|
<% _t('CMSMain.EditTree', 'Edit Tree') %>
|
|
</button>
|
|
</div> |