Redirect back not working in laravel
<p>I am just doing a project in which I want to redirect back on to another tab. I am stuck in this as it doesnot working fully. I cannot redirect another tab as it redirect back to the default tab. How can I do this.
My view is</p>

<pre><code>&lt;div class="nav-tab  clearfix"&gt;
                                &lt;div class="nav-tab-item active"&gt;
                                    &lt;span&gt;Intro&lt;/span&gt;
                                &lt;/div&gt;
                                @if ( Auth::check() )
                                    @if ( $user-&gt;id == Auth::user()-&gt;id )
                                        &lt;div id="Appointments" class="nav-tab-item tab-pane {{ !empty($tabName) &amp;&amp; $tabName == 'Appointments' ? 'active' : '' }}"&gt;

                                            &lt;span&gt;Appointments&lt;/span&gt;
                                            &lt;span class="ribbon" style="display: none"&gt;02&lt;/span&gt;
                                        &lt;/div&gt;
                                        &lt;div class="nav-tab-item "&gt;
                                            &lt;span&gt;Calendar&lt;/span&gt;
                                        &lt;/div&gt;
                                    @endif
                                @endif
                                &lt;div class="nav-tab-item "&gt;
                                    &lt;span&gt;Reviews&lt;/span&gt;
                                &lt;/div&gt;
                                @if ( Auth::check() )
                                    @if ( $user-&gt;id == Auth::user()-&gt;id )
                                        &lt;div class="nav-tab-item " id="tab5"&gt;
                                            &lt;span&gt;Billing&lt;/span&gt;
                                        &lt;/div&gt;

                                        &lt;div class="nav-tab-item"&gt;
                                            &lt;span&gt;Payment History&lt;/span&gt;
                                        &lt;/div&gt;
                                    @endif
                                @endif

                            &lt;/div&gt;
                        &lt;/div&gt;
</code></pre>

<p>My redirect method is</p>

<pre><code>return Redirect::to(URL::previous() . "#Appointments");
</code></pre>

<p>plz help me guys.</p>