-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Broken link in initial (blank) Query Snippets page - missing organisation slug #4140
Comments
I've already started looking into this, I believe it's not a slug issue (it also happens in netlify's preview and I think the organization slug would be in the base url). This is a specific case for the logic I've introduced here. It works by avoiding the controller to be changed when changing the url, the issue is when you open the url |
@gabrieldutra won't #4143 work? The other option I had in mind is just to use the onClick handler like we do with the button. |
🤔 it's possible that what I tried was a different issue: You can only click once in that, after that the link just stops working. It also happens if you open The |
One of our users has reported the Query Snippets page has a broken link in the initial (unpopulated) placeholder content.
The Query Snippets page has a "New Query Snippet" button which works, and a text link in the list area to "Click here to add one".
The URL on the "Click here to add one" text is incorrect, missing the organisation slug.
eg: "https://myserver.org/query_snippets/new" instead of "https://myserver.org/myorganisation/query_snippets/new".
Looking at our code base, the problem seems to be our hard coded path here not adding the slug:
redash/client/app/pages/query-snippets/QuerySnippetsList.jsx
Line 155 in 75883a1
Hopefully this is a simple thing to fix. 😄
The text was updated successfully, but these errors were encountered: