%20 → percent encoding for space character
What you see is the row assigned as the value for RoleID : + row.RoleID + .
You run Laravel inside these external quotes, so just turn off JS string concatenation and write direct PHP (suppose you have a $row variable available on the server side):
var href = "{!! route('ShowUserMainForm', ['RoleID'=> $row.RoleID]) !!}";
When Laravel passes your route into an anchor tag and creates this HTML (everything that happens inside these {!! !!} ), you are working on the server. When you use javascript, you are in the client. You cannot send data from the client to the server the way you are trying.
source share