Add referer to /data_control

This commit is contained in:
Omar Roth 2018-08-25 21:48:20 -05:00
parent c3d8ca68b3
commit 6c98513153
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
<% end %> <% end %>
<div class="h-box"> <div class="h-box">
<form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control" method="post"> <form class="pure-form pure-form-aligned" enctype="multipart/form-data" action="/data_control?referer=<%= referer %>" method="post">
<fieldset> <fieldset>
<legend>Import</legend> <legend>Import</legend>

View file

@ -137,11 +137,11 @@ function update_value(element) {
<legend>Data preferences</legend> <legend>Data preferences</legend>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/clear_watch_history">Clear watch history</a> <a href="/clear_watch_history?referer=<%= referer %>">Clear watch history</a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<a href="/data_control">Import/Export data</a> <a href="/data_control?referer=<%= referer %>">Import/Export data</a>
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">

View file

@ -8,7 +8,7 @@
</div> </div>
<div class="pure-u-1-3" style="text-align:right;"> <div class="pure-u-1-3" style="text-align:right;">
<h3> <h3>
<a href="/data_control">Import/Export</a> <a href="/data_control?referer=<%= referer %>">Import/Export</a>
</h3> </h3>
</div> </div>
</div> </div>