device urls by hostname not id. [SEC=UNCLASSIFIED]
![](https://secure.gravatar.com/avatar/06aa7c7b7c1aceeb9f755fe9380d301a.jpg?s=120&d=mm&r=g)
Vers: CE 0.16.1.7533
I've found that editing html/includes/entities/device.inc.php, line 478
return generate_url(array('page' => 'device', 'device' => $device ['device_id']), $vars); -> return generate_url(array('page' => 'device', 'device' => $device ['hostname']), $vars);
produces urls that are hostname based.
The questions are: was this the right place ? was there a variable somewhere i had to turn on to make this happen ?
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Why would you do such a thing? :O
That's the only place it could be done though, yeah.
Adam.
Sent from BlueMail
On 27 Jan 2016, 01:27, at 01:27, Peter.Hine@familycourt.gov.au wrote:
Vers: CE 0.16.1.7533
I've found that editing html/includes/entities/device.inc.php, line 478
return generate_url(array('page' => 'device', 'device' => $device ['device_id']), $vars); -> return generate_url(array('page' => 'device', 'device' => $device ['hostname']), $vars);
produces urls that are hostname based.
The questions are: was this the right place ? was there a variable somewhere i had to turn on to make this happen ?
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/06aa7c7b7c1aceeb9f755fe9380d301a.jpg?s=120&d=mm&r=g)
because when i hand out urls to people like the apps developers or Finance or the Business Development Team or Managers, or , or , or ......
these make more sense to them. https://observium.familycourt.gov.au/device/device=ccprp11/ https://observium.familycourt.gov.au/device/device=ccprp21/ https://observium.familycourt.gov.au/device/device=ccpfs11/ https://observium.familycourt.gov.au/device/device=ccpfs21/
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
Hi,
you just can use "full" device hostname in url (as in your example but with domain), it should work.
On Thu, Jan 28, 2016 at 4:44 AM, Peter.Hine@familycourt.gov.au wrote:
because when i hand out urls to people like the apps developers or Finance or the Business Development Team or Managers, or , or , or ......
these make more sense to them. https://observium.familycourt.gov.au/device/device=ccprp11/ https://observium.familycourt.gov.au/device/device=ccprp21/ https://observium.familycourt.gov.au/device/device=ccpfs11/ https://observium.familycourt.gov.au/device/device=ccpfs21/
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/06aa7c7b7c1aceeb9f755fe9380d301a.jpg?s=120&d=mm&r=g)
for some time i had been crafting these url by putting the hostname in, but clicking on something revert to device_id.
I wanted it permament,
i've put my marker on it so i know how to find it for the next revision.
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
participants (3)
-
Adam Armstrong
-
Mike Stupalov
-
Peter.Hine@familycourt.gov.au