My first thought is if your routes were setup correctly http://localhost:8000/profile/profile/1?page=2would throw a 404 error, page not found.
Make sure you don't have something like this..
Route::group(['prefix' => '/profile'], function() { // <<--- first /profile
// this is bad
Route::resource('/profile', 'someController'); // <-- second /profile
// this is good
Route::resource('/', 'someController');
// this is bad
Route::get('/profile/{profile}', 'someController@show'); // <-- second /profile
// this is good
Route::get('/{profile}', 'someController@show');
});
Both would produce /profile/profile because they have /profile path while being in a group that prefixes another /profile..
If this isn't the case, show us your routes..