title: How to remain same pagination page on table after action
body: <p>i have created a table (using datatables) and in the table a few actions. in the table i have a button to do a function "delete", also using datatables i get pagination.. So for example i am at page 5, and i want to delete a row when i click delete it refreshes the page and goes back to page no 1. How can i make it remain at page 5 after the action delete? Below are my table and controller function </p>
  
  <p>viewStatistics.blade:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table class="table table-hover demo-table-search table-responsive-block alt-table" id="tableWithSearch"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th class="text-center" style="width:80px;"&gt;ID&lt;/th&gt;
        &lt;th class="text-center"&gt;Date&lt;/th&gt;
        &lt;th class="text-center"&gt;Question &lt;br&gt; Asked&lt;/th&gt;
        &lt;th class="text-center"&gt;Low &lt;br&gt; Confidence&lt;/th&gt;
        &lt;th class="text-center"&gt;No &lt;br&gt; Answer&lt;/th&gt;
        &lt;th class="text-center"&gt;Missing &lt;br&gt; Intent&lt;/th&gt;
        &lt;th class="text-center"&gt;Webhook &lt;br&gt; Fail&lt;/th&gt;
        &lt;th class="text-center"&gt;Status&lt;/th&gt;
        &lt;th class="text-center"&gt;Action&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      @foreach($data as $sessionID =&gt; $value)
        &lt;tr&gt;
          &lt;td class="text-center"&gt;{{$value['identifier']}}&lt;/td&gt;
          &lt;td class="text-center"&gt;{{date("d M", strtotime($value['dateAccess']))}}&lt;/td&gt;
          &lt;td class="text-center"&gt;{{$value['total']}}&lt;/td&gt; &lt;!-- question asked --&gt;
          &lt;td class="text-center"&gt;{{$value['low confidence']}}&lt;/td&gt; &lt;!-- low confidence --&gt;
          &lt;td class="text-center"&gt;{{$value['no answer']}}&lt;/td&gt; &lt;!-- no answer --&gt;
          &lt;td class="text-center"&gt;{{$value['missing intent']}}&lt;/td&gt; &lt;!-- missing intent --&gt;
          &lt;td class="text-center"&gt;{{$value['webhook fail']}}&lt;/td&gt; &lt;!-- webhook fail --&gt;
          &lt;td class="text-center" style="{{$value['status'] == 'Reviewed' ? 'color:green' : 'color:red'}}"&gt;
            {{$value['status']}}
            @if($value['status'] == 'Pending')
              &lt;input type="checkbox" name="check" class="check" value="{{$sessionID}}"&gt;
            @endif
          &lt;/td&gt; &lt;!-- status --&gt;
          &lt;td class="text-center"&gt;
            &lt;div class="btn-group"&gt;
              &lt;button type="button" class="btn alt-btn alt-btn-black dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;Manage&lt;/button&gt;
              &lt;ul class="dropdown-menu"&gt;
                &lt;li&gt;
                  &lt;a href="{{action('AltHr\Chatbot\TrackerController@viewStatisticsLog', [$companyID, $sessionID, $value['status'], $value['identifier']])}}" class="btn btn-link"&gt;View&lt;/a&gt;
                &lt;/li&gt;
                &lt;li&gt;
                  &lt;a href="{{action('AltHr\Chatbot\TrackerController@deleteStatistics', [$companyID, $sessionID])}}" class="btn btn-link" onclick="return confirm('Are you sure that you want to delete this chat logs?')"&gt;Delete&lt;/a&gt;
                &lt;/li&gt;
                @if($value['status'] == 'Pending')
                &lt;li&gt;
                  &lt;a href="{{action('AltHr\Chatbot\TrackerController@updateStatisticsStatus', [$companyID, $sessionID])}}" class="btn btn-link"&gt;Mark as Done&lt;/a&gt;
                &lt;/li&gt;
                @endif
              &lt;/ul&gt;
            &lt;/div&gt;
          &lt;/td&gt; &lt;!-- action --&gt;
        &lt;/tr&gt;
      @endforeach
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Controller:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public function deleteStatistics($companyID, $sessionID)
  {
    DiraChatLog::where('company_id', $companyID)-&gt;where('sessionID', $sessionID)-&gt;delete();
    return redirect(action('AltHr\Chatbot\TrackerController@viewStatistics', compact('companyID')))-&gt;with('notification',[
      'status' =&gt; 'success',
      'title' =&gt; 'Statistics Deleted',
      'message' =&gt; 'The Statistics have been deleted.'
    ]);
  }</code></pre>
  </div>
  </div>
  </p>