Hello and welcome to our forums!
In the same thread you can also find the URL helper topic. Create a custom factory: