I'm not really sure how to phrase the questions, but hope it's not too confusing.
Basically I've create a plugin which inject custom tabs into the posts content when displaying. For now, just assume I'm using DomTab, and I have permalink configured as /%category%/%postname%/
. Now I would like achieve 2 things with the tabs.
- Beautify the url by appending the tab name to the url according to the tab highlighted. e.g. If tab "Detail" is clicked/highlighted, the url should change from
http://myhost/catgegory/post1/
tohttp://myhost/catgegory/post1/detail/
without requiring to refreshing the page, much like how google did it. The content of all the tabs are preloaded and hidden. - When url with the tab name are access directly, say from a bookmark, the tab should be highlighted automatically. e.g. If user access
http://myhost/catgegory/post1/comment/
then the "Comment" tab should highlighted instead of the default tab when displayed.
I don't really need a full solution to this, but hints of where to start. As I understand query, but not sure how to access it with permalink enable.
Thanks
EDIT: Currently accessing http://myhost/catgegory/post1/comment/
ends up in 404