Monday, March 20, 2017

Slash added when redirected and using # in my url - Laravel

Laravel generates the link fine using:

<a href="">Section 1</a>

It generates:

http://example.com/users#section1

But when link is clicked and I'm redirected, link now looks like this (slash added):

http://example.com/users#/section1

Not sure why is doesn't stay like this:

http://example.com/users#section1

Route:

Route::get('users', ['as' => 'users.index','uses' => 'UsersController@index']);

Thanks



via user3489502

Advertisement