Defect #32420

Issue redirect after login not working

Added by James Kurczodyna 3 months ago. Updated 18 days ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:James Kurczodyna% Done:

0%

Category:-
Target version:-
Resolution: Affected version:

Description

I am seeing issues with redirects after login. When I go to an issue URL while logged out I expect to be redirected to the issue after logging in. I'm seeing this on.

Steps to reproduce:
  • log out
  • go to /issues/12345
    • I get redirected to /login?back_url=http%253A%252F%252Fissues.afinedevelopment.com%252Fissues%252F12345
  • log in
    • I get redirected to /my/page
    • expecting to be /issues/12345

MacOS / Chrome 77.0.3865.90

Environment:
Redmine version 4.0.1.stable
Ruby version 2.5.3-p105 (2018-10-18) [x86_64-linux]
Rails version 5.2.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.6.17
Git 1.7.9.5
Filesystem
Redmine plugins:
bitbucket_reference_redmine 0.1.3
redmine_agile 1.4.8
redmine_base_deface 0.0.1
redmine_base_stimulusjs 1.0.1
redmine_checklists 3.1.14
redmine_lightbox2 0.5.0
redmine_messenger 1.0.3
redmine_multiprojects_issue 4.0.0
redmine_open_links_in_new_window 0.0.3
redmine_theme_changer 0.4.0

Thanks,
James

History

#1 Updated by Marius BALTEANU 3 months ago

  • Status changed from New to Needs feedback
  • Assignee set to James Kurczodyna

Please try without any plugin installed.

#2 Updated by James Kurczodyna 2 months ago

We've disabled all plugins in our dev environment and are still experiencing the issue.

#3 Updated by Holger Just 2 months ago

Please make sure that you have configured the correct hostname in Administration -> Settings -> Host name and path. For the back_url validation to work, you need to enter the external hostname here, i.e. issues.afinedevelopment.com. Also make sure you have configured the correct scheme there to match your external protocol (i.e. http vs. https).

#4 Updated by James Kurczodyna 19 days ago

Both of those settings were already set correctly.

#5 Updated by Go MAEDA 18 days ago

I sometimes experience the same problem but I have not found conditions to reproduce without fail.

Also available in: Atom PDF