decidim-barcelona
decidim-barcelona copied to clipboard
Short URL
:tophat: User Story
Short URL option is not working on process general information configuration. We need this option enabled in order to do external communication easier. For exemple: https://www.decidim.barcelona/admin/participatory_processes/25/ Should be: https://www.decidim.barcelona/plaequipamentspoblesec ...as it is configured on the administration panel.
:clipboard: Related documentation
:dart: Acceptance criteria
:pushpin: Related issues
Related with the UX problem detected on https://github.com/decidim/decidim/issues/1242
Try with https://www.decidim.barcelona/processes/plaequipamentspoblesec - it redirects to the good URL
@andreslucena just to know: this is the shorter address we can get? Can we get one URL like: decidim.barcelona/plaequipamentspoblesec From a communication point of view would be better this way. Is it possible?
We might be able to achieve what @josanFFiG wants by copying this route constraint:
https://github.com/AjuntamentdeBarcelona/decidim-barcelona/blob/master/config/routes.rb#L5
And removing the /processes/
part, so that it becomes a full path, and move it to the end of the routes file so that it doesn't clash with other paths. But then we might get some slugs that use reserved words and wont' ever work.
Imagine a process with slug admin
. The URL generated would be decidim.barcelona/admin
, which is already in use, so we'd need to handle that. Adding the processes/
part (decidim/barcelona/processes/admin
in this example) ensures us we'll avoid any URL collision.
I like reddit approach on this cases (/r/ for subreddits), although I don't know if it's good on usability.
@josanFFiG what about having it with a /p/? decidim.barcelona/p/plaequipamentspoblesec ?
@andreslucena just a /p/ would be quite ok... if it's possible.
@AjuntamentdeBarcelona/developers any input?
/p/process-slug
good look to me. Maybe we should move this to decidim
or merge it with @andreslucena's issue.