Skip to content

Commit

Permalink
handle query params possibly in action for go_back
Browse files Browse the repository at this point in the history
  • Loading branch information
vangheem committed Mar 12, 2014
1 parent 66956ce commit 5257871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/Archetypes/skins/archetypes/go_back.cpy
Expand Up @@ -27,7 +27,7 @@ if context.isTemporary():
redirect_to = context.getFolderWhenPortalFactory().absolute_url()
message=_(u'message_add_new_item_cancelled',
default='Add New Item operation was cancelled.')
elif last_referer == '%s/edit' % context.absolute_url(): # coming from the edit page
elif '%s/edit' % context.absolute_url() in last_referer: # coming from the edit page
# XXX: This will only work if the edit view is named 'edit'
redirect_to = '%s/view' % context.absolute_url()
message=_(u'message_edit_item_cancelled',
Expand Down

1 comment on commit 5257871

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TESTS FAILED
Mr.roboto url : http://jenkins.plone.org/roboto/get_info?push=22632d729fd0457186f88657903ebed5
plone-5.0-python-2.7 [FAILURE]

Please sign in to comment.