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

Fixes #37876 - add leading slash to /subscriptions/add #11167

Conversation

jeremylenz
Copy link
Member

What are the changes introduced in this pull request?

Add a leading slash to the "Add Subscriptions" button that shows on the Subscriptions page when your manifest is empty. This will prevent the button from leading to /subscriptions/add/subscriptions/add which causes a blank screen.

Considerations taken when implementing this change?

Apparently it's been like this since the button was introduced in #10440 and no one noticed.

What are the testing steps for this pull request?

Import a manifest with no subscriptions in it
Go to the Subscriptions page
There are two "Add Subscriptions" buttons. We are concerned with the big one in the center (the PF4 one)
Click the button - you should go to the add subscriptions page
Now click Back
and click the button again.

Before - You are directed to /subscriptions/add/subscriptions/add, leaving React Router with nothing to render. 😢
After - You are correctly directed to /subscriptions/add every time, even after navigating back from the Add Subscriptions page.

Copy link
Member

@ianballou ianballou left a comment

Choose a reason for hiding this comment

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

Works for me!

@jeremylenz jeremylenz merged commit eba327d into Katello:master Oct 7, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants