mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 21:53:37 +00:00
feat: usar un slug
sino cuando cambia la licencia queda con la url de la anterior
This commit is contained in:
parent
3f3ef00410
commit
89ef2959e3
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
||||||
params = ActionController::Parameters.new(
|
params = ActionController::Parameters.new(
|
||||||
post: {
|
post: {
|
||||||
layout: 'license',
|
layout: 'license',
|
||||||
|
slug: Jekyll::Utils.slugify(I18n.t('activerecord.models.licencia')),
|
||||||
lang: lang,
|
lang: lang,
|
||||||
title: site.licencia.name,
|
title: site.licencia.name,
|
||||||
description: I18n.t('sites.form.licencia.title'),
|
description: I18n.t('sites.form.licencia.title'),
|
||||||
|
|
Loading…
Reference in a new issue