urlhacks

How would you design a hackable url

空扰寡人 提交于 2019-12-05 04:22:14
问题 Imagine you had a group of product categories organized in a nice tree hierarchy and you wanted to provide hackable urls to browse these. You could do something like this /catalog/categorya/categoryb/categoryc You could then quite easily figure out which category you should list the products for (note that the full URL is needed since you could have categories with the same name but at different locations in the hierarchy) Now what would be a good approach to add product information in that