plone / plone.app.content

Various views for Plone, such as folder_contents, as well as general content infrastructure, such as base classes and name choosers.
https://pypi.org/project/plone.app.content/
7 stars 32 forks source link

Redirect to a wrong after Workflow Action content_status_modify #227

Open 1letter opened 3 years ago

1letter commented 3 years ago
  1. Plain Plone 5/6 Installation
  2. Add a workflow to an image
  3. Make a workflow transition e.g. "publish"
  4. The view after the transition is the based on absolute_url(), if the content is an image, i see only the Image in the browser, not the plone site

I think the redirect url should be changed to:

return self.request.response.redirect(
    context.absolute_url() + "/" + context.getLayout()
)