All link to generated by HTML should be done by getNomUrl object class method or at least using dol_buildpath
+
All link to a page of a standard dolibarr object (an invoice, an order, a bank account, ...) should be included into your module page using the getNomUrl method of the class of the object.