Generating correct URLs on Wikia Metrics page

Why is this change needed?