Created
May 18, 2015 17:28
-
-
Save CoreyTrombley/196922603be5f7729114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Route name="resourceList" path="/list/:resourceType" handler={AdminList} /> | |
{/* may need nested route for tab Selections */} | |
<Route name="details" path="details" > | |
<Route name="companies" path=":resourceType" > | |
<Route name="companyId" path=":resourceId" > | |
<Route name="resourceDetail" path=":detailTab" handler={AdminDetails} > | |
<Route name="createBrand" path="/create/brand" handler={AdminCreateBrand} /> | |
</Route> | |
</Route> | |
</Route> | |
</Route> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/create/brand
is an absolute URL because it starts with/
, but in order for its parent routes to work, you need the parent route parameters, which are:detailTab
,:resourceId
,:resourceType
. What do you want the url to look like forcreateBrand
?Also, you've go two
:resourceType
segments (fromresourceList
andcompanies
).