umairparacha's avatar

why i am getting %7D at the end of url by creating a link with named routes

why I am getting %7D at the end of the URL by creating a link with named routes.

0 likes
4 replies
MichalOravec's avatar
Level 75

%7D is the ASCII code for the } character.

So you propably add one for } in the end of named route.

<a href="{{ route('some.named.route') }} } <== [this one is a problem]">Link</a>
1 like
deepu07's avatar

@umairparacha can i see your routes file? anyways route should be like this

Route::get('/user/{userId}', 'UserController@user');
heintruong's avatar

Wow, can't believe I got same issue and reason. Lmao.

Please or to participate in this conversation.