I don't know which Mendix version you use, but from a nanoflow it's possible to call a microflow in later versions. For example, you could create a microflow that returns the runtime url as a string and call it from your nanoflow. (I assume you're already aware of the java action in community commons)