Using slug only as url without id

This is working as intended.

Discourse support the 3 types:

But if the slug starts with a number we special case and look for the first number as an ID: