I was wondering if I could get the path auto alias for my custom entity?

Path auto is working for my custom entity, but the URL is still showing as `entity/1`.

Comments

admirernepali created an issue. See original summary.

admirernepali’s picture

Never mind,

{{ path('entity.custom_entity.canonical', {'custom_entity': entity.id()}) }} does gives the generated path. I just needed to clear the cache.

greggles’s picture

Status: Active » Fixed

Glad you were able to figure it out.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.