"https://"+ AddPersonalAreaToURLPath(GetOwnerURLPath() + "Predio_Edit.aspx") + "?PredioId=" + GetListaPredio.List.Current.Predio.Id
If you have entry points setup, there is an action in HttpRequestHandler called "GetEntryURL". This resolves the name of the server and espace automatically and also includes parameters.
MakeAbsoluteURL(GetEntryURL("<your Entry Point or PageName>","<your eSpace>","PredioId",GetListaPredio.List.Current.Predio.Id))