Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Back button in back end redirects to "wrong" page #1117

Closed
bezin opened this issue Sep 29, 2017 · 4 comments
Closed

Back button in back end redirects to "wrong" page #1117

bezin opened this issue Sep 29, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@bezin
Copy link
Contributor

bezin commented Sep 29, 2017

Hi there,

while working with Contao 4.4 I experienced one unexpected redirect in the back end that I would like to discuss. To reproduce on demo.contao.org:

  1. Duplicate an article in the backend, e.g. "Content Elements" on the corresponding page.
  2. Insert the duplicate after the original.
  3. Save and Edit
  4. Edit first text element and click "Save and Close".

If you click on the back button now, you will be redirected to the back end frontpage, but would one not expect to be redirected to the articles page?

If you skip step 4 and click the back button in step 3, it does exactly that.

Cheers
Benedict

@fritzmg
Copy link
Contributor

fritzmg commented Sep 29, 2017

It's an ongoing issue that still has not been resolved completely: contao/core#6127

@leofeyer leofeyer added the bug label Oct 4, 2017
@leofeyer leofeyer added this to the 4.4.7 milestone Oct 4, 2017
@leofeyer
Copy link
Member

leofeyer commented Oct 4, 2017

Can you please replace

$referers[$refererId] = ['last' => ''];
with

$referers[$refererId] = end($referers);

and see if it has any ramifications?

@contao/developers /cc

@bezin
Copy link
Contributor Author

bezin commented Oct 9, 2017

I replaced this line and it does fix my issue. I have not had any unexpected side effects so far.

@leofeyer
Copy link
Member

leofeyer commented Oct 9, 2017

Fixed in 8654daf.

@leofeyer leofeyer closed this as completed Oct 9, 2017
@leofeyer leofeyer modified the milestones: 4.4.7, 4.4 May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants