I have a lot of pages (urls) in my app. But there’s one page (url) let’s say
Page/URL A which I want for user to land/visit only if he/she comes/redirects from another specific url let’s say
Page/URL B. I don’t want user to view
Page/URL A directly if the user put url in the browser.
To ease the help, I am posting the urls of both pages.
Page/URL A is:
path("invite-user/", InviteUser.as_view(), name="invite_user"), # Invite User Page
Page/URL B is:
path( "switch-workspace/", SwitchWorkspace.as_view(), name="switch_workspace" ), # Switch Workspace Page
Can someone help me to accomplish it?