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

Unable to change Browse category label in Rare Music exhibit #2584

Open
caaster opened this issue Sep 27, 2024 · 4 comments
Open

Unable to change Browse category label in Rare Music exhibit #2584

caaster opened this issue Sep 27, 2024 · 4 comments
Assignees

Comments

@caaster
Copy link

caaster commented Sep 27, 2024

This problem described below is somehow ringing a long-ago bell. I think there is a technical reason why this is happening, but I can't recall the specifics.

The exhibit curator made a labeling error when they created the Browse category called "Image" for https://exhibits.stanford.edu/rare-music. They meant to label the Browse category as "Images." However, when they try to edit the Browse category label from Image to Images the following error is thrown:

Screen Shot 2024-09-27 at 10 29 57 AM

Is it possible to change this Browse category label, and if so, can an exhibit curator do so?

@corylown corylown self-assigned this Sep 27, 2024
@corylown
Copy link
Contributor

corylown commented Sep 27, 2024

@caaster there is a list of reserved terms that cannot be used to name browse categories because they could conflict with other named URL paths in the application. images is one of those words. The list of reserved terms is:

  • new
  • edit
  • index
  • session
  • login
  • logout
  • users
  • stylesheets
  • assets
  • javascripts
  • images

That error message is cryptic and if you think it would be helpful we could look into displaying something more clear.

@caaster
Copy link
Author

caaster commented Sep 27, 2024

@corylown Yes, that message reads as nonsensical to me. So it would be quite helpful to display something more clear. Let me know if we should loop Alan in here?

@corylown
Copy link
Contributor

@caaster how about something like:

The title "images" is reserved and cannot be used. Please choose a different title.
Screenshot 2024-09-27 at 4 36 03 PM

@caaster
Copy link
Author

caaster commented Sep 27, 2024

@corylown perfect. Thank you.

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

No branches or pull requests

2 participants