I have built a website using Django framework(www.example.com). While navigating the site the URL changes to like (www.example.com/home or /profile etc). Is there some way that the current url is masked by a placeholder eg(www.example.com/home should be shown as www.example.com). This should work throughout the website. The url shown to the user would remain same (www.example.com) to where ever the user navigates on the site
Asked
Active
Viewed 1,200 times
-2
-
1Why on Earth would you want to do that? https://stackoverflow.com/questions/824349/modify-the-url-without-reloading-the-page – helb Jun 18 '18 at 05:58
1 Answers
-1
HIGHLY NOT RECOMMENDED
- Keep a single link in your
urls.py
, containingr'^$'
. - Handle all requests purely as
POST
request.
Note: You'll have to hard code every parameter, and detect manually from where the request is coming.
To know how to work with POST
request in detail check Django docs

Rakmo
- 1,926
- 3
- 19
- 37