Fix category url for global categories

This is a fixup to #847 for cases where categories are global. Note that category pages are currently only available for non-global categories.