Added feature flag for flatUrls

refs https://github.com/TryGhost/Arch/issues/24

- Enables generating Post and Page URLs in a flat `{slug}-{id}` format
This commit is contained in:
Naz 2023-07-05 17:27:52 +08:00 committed by naz
parent 289e459283
commit 4372a7e1a8
3 changed files with 16 additions and 0 deletions

View File

@ -74,6 +74,7 @@ export default class FeatureService extends Service {
@feature('collections') collections; @feature('collections') collections;
@feature('adminXSettings') adminXSettings; @feature('adminXSettings') adminXSettings;
@feature('pageImprovements') pageImprovements; @feature('pageImprovements') pageImprovements;
@feature('flatUrls') flatUrls;
@feature('mailEvents') mailEvents; @feature('mailEvents') mailEvents;
_user = null; _user = null;

View File

@ -311,6 +311,20 @@
</div> </div>
</div> </div>
<div class="gh-expandable-block">
<div class="gh-expandable-header">
<div>
<h4 class="gh-expandable-title">Flat URLs</h4>
<p class="gh-expandable-description">
Enables generating flat Post and Page URLs in `{slug}-{id}` format
</p>
</div>
<div class="for-switch">
<GhFeatureFlag @flag="flatUrls" />
</div>
</div>
</div>
<div class="gh-expandable-block"> <div class="gh-expandable-block">
<div class="gh-expandable-header"> <div class="gh-expandable-header">
<div> <div>

View File

@ -40,6 +40,7 @@ const ALPHA_FEATURES = [
'collections', 'collections',
'adminXSettings', 'adminXSettings',
'pageImprovements', 'pageImprovements',
'flatUrls',
'mailEvents' 'mailEvents'
]; ];