Using Channel ID to launch channel in embedded iframe

Currently we can launch a channel inside an embedded iframe using the channel name
/channel/channelname?layout=embedded. However, we would like to use the channel ID which is unique. If you use /channel/channelid?layout=embedded it loads the channel but does not initially load the previous messages. Is there a way to use the channel id rather than the name since that is more unique