Hi Milton,
Please see my reply on: https://moodle.org/mod/forum/discuss.php?d=262104&parent=1135870
Regarding "Can I be assured that all Moodle instances, now and in later versions, use /mod/page/view.php?id=<id number> path?" I do not consider that it can be assured. Moodle is constantly adapting and changing. Therefore it cannot be said for a 100% certainty that it will never change.
Cheers,
Gareth