Hi. I'm working with the angularjs+entity framework template. I would like to have the following site structure :
http://mysite/london/trends
http://mysite/paris/trends
inside App/Main/views I'll have the folders :
/london
/paris
and each folder will have a trends.cshtml file.
If the user opened the address <a class="postlink" href="http://mysite/london">http://mysite/london</a> he will see the same navigation bar. Now, if he will choose 'trends' from the menu, it will navigate to <a class="postlink" href="http://mysite/london/trends">http://mysite/london/trends</a>. If he was inside <a class="postlink" href="http://mysite/paris">http://mysite/paris</a> and chose 'trends', it should navigate to <a class="postlink" href="http://mysite/paris/trends">http://mysite/paris/trends</a>
Is there a support for this in the navigation provider cs file ? The angular routing is preety easy:
.state('londontrends', {
url: '/london/trends',
templateUrl: '/App/Main/views/london/trends/trends.cshtml'
})
.state('paristrends', {
url: '/london/trends',
templateUrl: '/App/Main/views/paris/trends/trends.cshtml'
})
But how should I modify the NavigationProvider cs file to support this scenario? Any documentation for such case ? Thanks.
(btw. if you're asking, when all of this will work, I'll just create a '/' routing which routes to a "select city" page) (I've also read this post, and that's not what I want : #471@40a31a81-8c1b-48d9-9693-c3e17a1b1210)