Fixing link displays in a non-clean-url environment