Simplify call to generateFrontendUrl().

Thanks to discordier for this hint.