added logic to distinguish post categories ask/url