Skip to content

Commit

Permalink
use {slug} not {handle} by default when auto-creating uri formats
Browse files Browse the repository at this point in the history
  • Loading branch information
nateiler committed Apr 30, 2019
1 parent 7744df4 commit e4f4104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/_cp/_components/sites.twig
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
{% js %}
new Craft.HandleGenerator('#name', '#handle');
{% for site in craft.app.sites.getAllSites() %}
new Craft.UriFormatGenerator('#name', '#siteSettings tr[data-id="{{ site.handle }}"] textarea[name$="[uriFormat]"]', { suffix: '/{handle}' });
new Craft.UriFormatGenerator('#name', '#siteSettings tr[data-id="{{ site.handle }}"] textarea[name$="[uriFormat]"]', { suffix: '/{slug}' });
new Craft.UriFormatGenerator('#name', '#siteSettings tr[data-id="{{ site.handle }}"] textarea[name$="[template]"]', { suffix: '/_organization' });
{% endfor %}
{% endjs %}
Expand Down

0 comments on commit e4f4104

Please sign in to comment.