How to control the access sequence of two pages?
for example,
there are 3 tables,users,user_profiles,articles.
users register first,then he/she must fills his/her profile,
and then he/she can publish articles.
If he/she publishes articles before filling his/her profile,give him/her a prompt,“you should fill your profile first”,
and then redirect to the profile create action.
Depends on how would you like to structure the templates.
If you’d like to have different routes for the functions. Simply show reminder at publishing template if profile is not created, with a link for user to go to profile route.
The more direct way is to show the profile form at the same route of publishing if profile criteria is not met. More user friendly that way.