sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
52 stars 77 forks source link

URL cannot be refreshed automatically #580

Closed speex404 closed 1 year ago

speex404 commented 3 years ago
Q A
Bug? yes
New Feature? no
SuluArticleBundle Version 2.3
Sulu Version 2.3

Actual Behavior

When changing the title, the button to refresh the url remains grayed out.

Expected Behavior

When changing the title, the button should become active and when selecting it, the url should be refreshed.

image

niklasnatter commented 3 years ago

Hey, thanks for reaching out. Refreshing an URL is only possible when using live generation (see https://github.com/sulu/SuluArticleBundle/issues/514#issuecomment-817662765).

At the moment, the default configuration of the bundle generates the URL based on the ArticleDocument instance after save. This allows to include things like the id of an article in the generated URL, but it prevents live generation. If you do not need data that is only available after save, you can change your configuration like described in https://github.com/sulu/SuluArticleBundle/issues/514#issuecomment-817662765.

niklasnatter commented 1 year ago

Thanks for creating this! We adjusted the default configuration to allow for refreshing in #581 🙂