the code below will not work in this case, you simply return the string if its not a uuid.

probably you need to keep it separate whether something is a url or a route.