How we can change frappe url for doctype and pages?

Hello,

Can someone please guide me, how url works in Frappe?

I want to change some characters in default URL before it renders.

e.g.
Replace all spaces to %20 by default.

Thanks,
Sam

1 Like

You can use urllib.urlencode(args)

Hello @saurabh6790 ,

I want to change core code of frappe,

E.g someone click on Sales Order, then it will open
http://domain.com/desk#List/Sales%20Order/List instead of
http://domain.com/desk#List/Sales Order/List

You can see white space breaks url.

Similarly I want to encode url if Item Name contains any special charter

If there any way to change url before it renders in browser.

Have you found a solution to remove white space from get_url?