decidim-barcelona icon indicating copy to clipboard operation
decidim-barcelona copied to clipboard

Short URL

Open josanFFiG opened this issue 7 years ago • 7 comments

: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

josanFFiG avatar Jun 12 '17 08:06 josanFFiG

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 avatar Jun 12 '17 09:06 andreslucena

@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?

josanFFiG avatar Jun 12 '17 09:06 josanFFiG

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.

mrcasals avatar Jun 12 '17 09:06 mrcasals

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 avatar Jun 12 '17 09:06 andreslucena

@andreslucena just a /p/ would be quite ok... if it's possible.

josanFFiG avatar Jun 12 '17 09:06 josanFFiG

@AjuntamentdeBarcelona/developers any input?

mrcasals avatar Jun 12 '17 09:06 mrcasals

/p/process-slug good look to me. Maybe we should move this to decidim or merge it with @andreslucena's issue.

oriolgual avatar Jun 12 '17 09:06 oriolgual