KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm wondering what is the best way to handle URL in MVC. For example, in my application I have a PageController can link to /website/Page/Index/3 or /website/Page/home . The menu is built dynamically with Html.ActionLink() and T4MVC based on the incoming urls so I don't have anything hardcoded. Now what I want to do is to point my url and links to something more SEO friendly like, for example, /website/our-company/ and it can also have children like /website/our-company/location/ or /website/our-company/employees/ . You get the idea. All my Pages are saved to the BD and I have FriendlyUrl and parentId properties in my object. What's is the best way of doing it?
Tags (comma-separated)
Save Edits
Cancel