📋 Complete Route Documentation
All available routes in the TradingRoom iFrame Deep Links system:
Static Routes:
• home → /community/:communityName
• activity → /activity/:communityName
• dm → /direct-message
• quests-milestones → /quests/milestones/:communityName
• quests-badges → /quests/badges/:communityName
• store → /store/:communityName
• socials → /socials/:communityName
• referrals → /community/:communityName/referral
• my-account → /myaccount/my-profile
• default-leaderboard → /community/:communityName/leaderboard
Dynamic Routes:
• custom-leaderboard → /community/:communityName/leaderboard/:customLeaderboardId
• channel-{channelName} → /community/:communityName/channel/{channelName} (auto-generated)
Basic Deep Link Script:
window.parent.postMessage({
type: 'IFRAME_DEEP_LINK',
pageName: 'activity'
}, '*');
Custom Leaderboard with ID:
window.parent.postMessage({
type: 'IFRAME_DEEP_LINK',
pageName: 'custom-leaderboard',
customLeaderboardId: 'your-leaderboard-id'
}, '*');
Individual Channel Navigation:
window.parent.postMessage({
type: 'IFRAME_DEEP_LINK',
pageName: 'channel-general' // For 'general' channel
}, '*');
window.parent.postMessage({
type: 'IFRAME_DEEP_LINK',
pageName: 'channel-announcements' // For 'announcements' channel
}, '*');
📝 Usage Notes:
- All routes automatically use the current active community
- Channel names should match exactly as they appear in Redux store
- Custom leaderboard IDs can be retrieved from your leaderboard API
- Routes like 'dm' and 'my-account' don't require community context
- The postMessage API validates all parameters before navigation