Project

General

Profile

Bug #33177

After creating new host group or Http proxy, page doesn't redirect to main landing page.

Added by Ondřej Ezr over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1966942

Description of problem:
After creating new Http proxy, page doesn't redirect to main landing page.

This happens for only first created proxy (from welcome page)

Version-Release number of selected component (if applicable):
- Foreman 2.5

How reproducible:
- Always

Steps to Reproduce:
1. Go to Infrastructure > HTTP Proxies > New HTTP Proxy
2. Add proxy Name and url
3. Click on submit

Actual results:
- Page doesn't redirect to main HTTP Proxy page

Expected results:
- Page redirects to main HTTP Proxy page and show all http proxies created.

Additional info:


Related issues

Copied to Foreman - Bug #33637: After creating new host group from help page, page doesn't redirect to main landing page.Closed

Associated revisions

Revision 03a6981c (diff)
Added by Tomer Brisker over 1 year ago

Fixes #33177 - Don't store incorrect referrer for redirect

When the client side uses `history.push` to navigate to a page that is
not managed by react router, the router fallback will navigate to the
new page. However, the browser URL is updated before the actual
navigation, causing the `document.referrer` to point to the new URL
instead of the previous one. In these cases, we can't reliably know
where the user navigated from so we should clear the `redirect_to_url`
from the session storage and rely on the default fallback (which is
usually the respective index page).

History

#1 Updated by yifat makias over 1 year ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned
  • Subject changed from After creating new host group or Http proxy, page doesn't redirect to main landing page. to After creating new host group or Http proxy, page doesn't redirect to main landing page.

#2 Updated by The Foreman Bot over 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8724 added

#3 Updated by Tomer Brisker over 1 year ago

  • Assignee changed from yifat makias to Tomer Brisker

#4 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.1.0 added

#5 Updated by Tomer Brisker over 1 year ago

  • Status changed from Ready For Testing to Closed

#6 Updated by Tomer Brisker over 1 year ago

  • Copied to Bug #33637: After creating new host group from help page, page doesn't redirect to main landing page. added

#7 Updated by Amit Upadhye over 1 year ago

  • Category set to Web Interface

Also available in: Atom PDF