Report a Bug
#BugReportDecidim Let's test Decidim and report bugs together
Linking to other modules than proposals in comments always leads to proposal links
Currently the proposal parser for comments always assumes the URLs formatted as the proposal URLs are links to proposals:
https://github.com/decidim/decidim/blob/master/decidim-proposals/lib/decidim/content_parsers/proposal_parser.rb
This will for example match the following URLs:
https://decidim.lvh.me/processes/example/f/1/proposals/123
https://decidim.lvh.me/processes/example/f/1/plans/123
https://decidim.lvh.me/processes/example/f/1/whatever-here/123
As you see from the URLs, the items can also be something else than proposals, even though they may have same IDs as proposals (as they are completely separate entities).
This parser should consider that there may be other components that have URLs of similar structure. In such case, the parser makes it impossible to link to any other resources that have same primary IDs as existing proposals.
This proposal has been accepted because:
This incidence has been solved. Closed via #4978.
Thank you for contributing!
Report inappropriate content
Is this content inappropriate?
Comment details
You are seeing a single comment
View all comments
Thanks for your PR @ahu!
Loading comments ...