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

self_html link in community requests is wrong #1228

Open
tmorrell opened this issue Oct 14, 2024 · 0 comments
Open

self_html link in community requests is wrong #1228

tmorrell opened this issue Oct 14, 2024 · 0 comments

Comments

@tmorrell
Copy link

Package version (if known): v12

Describe the bug

The self_html link in a requests API results in a 404 because it is missing the community path. Example https://inveniordm.web.cern.ch/api/requests/52636814-f66c-4330-b9ed-5e15ee1eda80 has self_html: "https://inveniordm.web.cern.ch/requests/52636814-f66c-4330-b9ed-5e15ee1eda80". Working links are either https://inveniordm.web.cern.ch/me/requests/52636814-f66c-4330-b9ed-5e15ee1eda80 or https://inveniordm.web.cern.ch/communities/testing/requests/52636814-f66c-4330-b9ed-5e15ee1eda80

Steps to Reproduce

  1. Create a community submission
  2. Got to /api/requests/ with the request id
  3. Click on the self_html link
  4. See error

Expected behavior

The /me/requests/ path seems like a easier fix, though it might not work for individuals with just community permissions.

Screenshots (if applicable)

Additional context

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

1 participant