Ask Your Question
3

Would it be reasonable to create a utility function in Django that directs a user back to the page they came from?

asked 2023-03-18 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-03-07 01:00:00 +0000

pufferfish gravatar image

Yes, it would be reasonable to create a utility function in Django that directs a user back to the page they came from. This function could use the referrer HTTP header to determine the page the user came from and redirect them back to that page. This would provide a better user experience and make it easier for users to navigate the site.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-03-18 11:00:00 +0000

Seen: 9 times

Last updated: Mar 07 '23