You may find the guide for the Slug System helpful. It essentially achieves what you are asking for, but unfortunately requires some view configuration in the admin console. At the time of this comment, the guide is written for v3. The paths referenced within do not exist in v4.