diff options
Diffstat (limited to 'app/views/nodes/edit.html.erb')
| -rw-r--r-- | app/views/nodes/edit.html.erb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb index f629985e..a40f3949 100644 --- a/app/views/nodes/edit.html.erb +++ b/app/views/nodes/edit.html.erb | |||
| @@ -154,8 +154,7 @@ | |||
| 154 | <div id="redirect_target_field" style="<%= "display: none;" unless @page.redirect.present? %>"> | 154 | <div id="redirect_target_field" style="<%= "display: none;" unless @page.redirect.present? %>"> |
| 155 | <div class="input_group" data-clears="page_redirect_node_id"> | 155 | <div class="input_group" data-clears="page_redirect_node_id"> |
| 156 | <span class="field_search_icon"><%= icon("search", library: "tabler", "aria-hidden": true) %></span> | 156 | <span class="field_search_icon"><%= icon("search", library: "tabler", "aria-hidden": true) %></span> |
| 157 | <%= text_field_tag :redirect_search_term, | 157 | <%= text_field_tag :redirect_search_term, @page.redirect_node&.title, |
| 158 | Node.find_by(:id => @page.redirect_node_id)&.title, | ||
| 159 | :placeholder => "—", :class => "clearable_input" %> | 158 | :placeholder => "—", :class => "clearable_input" %> |
| 160 | <div id="redirect_search_results" class="search_results"></div> | 159 | <div id="redirect_search_results" class="search_results"></div> |
| 161 | <button type="button" class="field_clear" aria-label="clear input">×</button> | 160 | <button type="button" class="field_clear" aria-label="clear input">×</button> |
