Fix category url for global categories

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