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

fix(settings): Change search org settings routes #73707

Closed
wants to merge 1 commit into from

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Jul 2, 2024

routes for some settings are defined aas /settings/:orgId/ and for some reason normalizeUrl is sending users to the root settings page. Adjust the route to send them to the right page.

fixes #73692

routes for some settings are defined aas `/settings/:orgId/` and for some reason normalizeUrl is sending users to the root settings page. Adjust the route to send them to the right page.

fixes #73692
@scttcper scttcper requested review from markstory and a team July 2, 2024 23:45
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 2, 2024
Copy link

codecov bot commented Jul 3, 2024

Bundle Report

Changes will increase total bundle size by 1.01kB ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 27.25MB 1.01kB ⬆️

const results =
fuzzy?.search(query).map<Result>(value => {
const {item, ...rest} = value;
if (isCustomerDomain && item.route === '/settings/:orgId/') {
item.route = '/settings/organization/:orgId/';
Copy link
Member

Choose a reason for hiding this comment

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

I don't remember there being a route for /settings/organization/:orgId. Using this route in the UI results in a redirect to /settings/organization/projects/:orgId/ which triggers a bunch of 403 errors as requests are made to the slug organization.

I think instead you want a redirect target of /settings/organization/ or /settings/:orgId/

Copy link
Member Author

Choose a reason for hiding this comment

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

for some reason /settings/organization/#anchor-tag is being normalized to just /settings/ however /settings/organization/:orgId/ does get normalized to the right place. This was also the fix @roggenkemper came up with in #73697 (review)

@getsantry
Copy link
Contributor

getsantry bot commented Jul 26, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Jul 26, 2024
@getsantry getsantry bot closed this Aug 5, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect redirect when searching for 'Let Members Create and Edit Alerts' setting.
3 participants