I have a small website in grails which has two pages. First is start and second page is details pages. URL's for this pages are http://somecomp.com/start and http://somecomp.com/details.
Now my first page which is start page has a tag which takes end user to details page.
I want to basically ensure that all my end user first comes on start page and then navigates to details pages. I want to restrict user if he directly opens http://somecomp.com/details.
Can this be done in grails and grrovy in some quick way. Any pointers will help.
Thanks JK
An easy approach could be to use a filter to intercept your request before
details
page and then check for some sort of flag maybe in session to see if start page was visited first.Set that flag in your index or first action of your start page.
StartController
.