# Remove URL encoding in route.js in can js

**URL:** <https://forums.bitovi.com/t/remove-url-encoding-in-route-js-in-can-js/831>\
**Category:** CanJS\
**Created:** [March 23, 2018, 7:19pm UTC](https://forums.bitovi.com/t/remove-url-encoding-in-route-js-in-can-js/831 "2018-03-23T19:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soultrue](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@soultrue](https://forums.bitovi.com/u/soultrue)\
**Post date:** [March 23, 2018, 7:19pm UTC](https://forums.bitovi.com/t/remove-url-encoding-in-route-js-in-can-js/831/1 "2018-03-23T19:19:09Z")

</div>

Hi,

I am using canjs 1.X version and as per my requirement, I have to remove URL encoding from my application. I checked the code and after removing the below code(encodeURIComponent) from route.js, it is working fine.  
if ( route ) {  
var cpy = extend({}, data),  
// Create the url by replacing the var names with the provided data.  
// If the default value is found an empty string is inserted.  
res = route.route.replace(matcher, function( whole, name ) {  
delete cpy[name];  
return data[name] === route.defaults[name] ? “” : **encodeURIComponent(** data[name] );

But the issue is, I can not update the canjs version or files as I do not have access of library files in server so I have to overwrite or mange it from my application only.

Do you have any suggestion, how can I do that ?

I would appreciate , if you can kindly share some code so that it would be so helpful for me.

---

<div class="post-metadata">

**Author:** ![chasen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/chasen/32/402_2.png) [@chasen](https://forums.bitovi.com/u/chasen)\
**Post date:** [March 23, 2018, 10:43pm UTC](https://forums.bitovi.com/t/remove-url-encoding-in-route-js-in-can-js/831/2 "2018-03-23T22:43:07Z")

</div>

For anyone watching (hello 👋), this was discussed on GitHub: [https://github.com/canjs/canjs/issues/4068](https://github.com/canjs/canjs/issues/4068)
