Member Plan Access
Part of the Routing and State section of Coddy's Vue journey. Lesson 54 of 55.
Build this checkpoint of the Community Workshop Planner.
Continue your previous planner and preserve all catalog, search, reservation, summary and fallback behavior. Protect My plan through metadata and a global guard reading the supplied installed session store. Signed-out visitors reach Login with their intended fullPath in returnUrl. Sign in locally activates the session and replaces Login with the accepted internal target, falling back to /plan for an absent, repeated, non-internal or login-prefixed target. Keep Catalog and details public. Sign out only clears the session flag; the next protected attempt redirects. Show Signed in or Signed out in p#session. This local session is navigation practice, not real authentication.
Keep the supplied route readout and bootstrap files.
Keep the supplied Navigation examples links. On My plan, display query tab or overview in p#plan-tab. The Plan notes link must return to the same query after sign-in; invalid return examples and the plain Sign in link use the fallback.
Challenge
HardContinue your previous planner and preserve all catalog, search, reservation, summary and fallback behavior. Protect My plan through metadata and a global guard reading the supplied installed session store. Signed-out visitors reach Login with their intended fullPath in returnUrl. Sign in locally activates the session and replaces Login with the accepted internal target, falling back to /plan for an absent, repeated, non-internal or login-prefixed target. Keep Catalog and details public. Sign out only clears the session flag; the next protected attempt redirects. Show Signed in or Signed out in p#session. This local session is navigation practice, not real authentication.
Keep the supplied route readout and bootstrap files.
Keep the supplied Navigation examples links. On My plan, display query tab or overview in p#plan-tab. The Plan notes link must return to the same query after sign-in; invalid return examples and the plain Sign in link use the fallback.
Try it yourself
<!doctype html><html><head><meta charset="UTF-8"><title>Routing practice</title></head><body><div id="app"></div><script type="module" src="./main.js"></script></body></html>This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Routing and State
4Query State
Reading Query ValuesCommitting Search QueriesPreserving Other FiltersNormalizing Query NumbersRecap: Catalog Filters2Navigation Actions
Navigation from HandlersReplacing HistoryHistory TravelCurrent Navigation LinksRecap: Save and Review5Nested Layouts
Parent and Child OutletsDefault Child ViewsRelative Child PathsAncestor Navigation StateRecap: Library Workspace8Store Design
Setup Store StructurePatching Related StateResetting Store StateComposing Related StoresRecap: Trip Pack11Workshop Planner Project
Planner RoutesShared Reservations