How we can change frappe url for doctype and pages?


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

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

Replace all spaces to %20 by default.


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 instead of 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?