diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index 91cf0285c1..44532ca5cf 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -74,6 +74,7 @@ export default class FeatureService extends Service { @feature('collections') collections; @feature('adminXSettings') adminXSettings; @feature('pageImprovements') pageImprovements; + @feature('flatUrls') flatUrls; @feature('mailEvents') mailEvents; _user = null; diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index 4ad2586064..6cb6e4f79b 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -311,6 +311,20 @@ +
+
+
+

Flat URLs

+

+ Enables generating flat Post and Page URLs in `{slug}-{id}` format +

+
+
+ +
+
+
+
diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 5ab7d7a6a1..a4da42903c 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -40,6 +40,7 @@ const ALPHA_FEATURES = [ 'collections', 'adminXSettings', 'pageImprovements', + 'flatUrls', 'mailEvents' ];