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

location_url in event incorrectly links to CMS #2852

Closed
LeandraH opened this issue Jun 17, 2024 · 9 comments · Fixed by #2879
Closed

location_url in event incorrectly links to CMS #2852

LeandraH opened this issue Jun 17, 2024 · 9 comments · Fixed by #2879
Assignees
Labels
bug Something isn't working
Milestone

Comments

@LeandraH
Copy link

Describe the Bug

The location_url in events links to the CMS, not the app.

Steps to Reproduce

  1. Go to 'https://cms.integreat-app.de/testumgebung/de/wp-json/extensions/v3/events/?combine_recurring=True'
  2. Check in the event with the id 57026 (currently the second one in the array)
  3. See that the location_url is 'https://admin.integreat-app.de/testumgebung/de/locations/testort/'.

Expected Behavior

The location_url should be 'https://integreat.app/testumgebung/de/locations/testort', aka the link to the location in the app.

Actual Behavior

The location_url is 'https://admin.integreat-app.de/testumgebung/de/locations/testort/', aka the link to the location in the CMS.

@steffenkleinle
Copy link
Member

Hmmm.... I am not sure if we should rather just use the slug/path instead of a full URL? That would provide us with more flexibility in the apps while probably less logic is required in the CMS (and it would follow the structure of all other properties/endpoints).

@LeandraH
Copy link
Author

True, but then it's not really a bug ticket anymore :D

@MizukiTemma
Copy link
Member

@steffenkleinle @LeandraH
Is this change but still needed as enhancement?

@LeandraH
Copy link
Author

That would be cool. I guess at that point it shouldn't be called location_url anymore but location_path?

@MizukiTemma MizukiTemma self-assigned this Jun 24, 2024
@MizukiTemma
Copy link
Member

@LeandraH @steffenkleinle

That would be cool. I guess at that point it shouldn't be called location_url anymore but location_path?

And should the outpup be "/testumgebung/de/locations/testort"?

@steffenkleinle
Copy link
Member

@LeandraH @steffenkleinle

That would be cool. I guess at that point it shouldn't be called location_url anymore but location_path?

And should the outpup be "/testumgebung/de/locations/testort"?

Yes, but probably including a trailing slash.

@MizukiTemma
Copy link
Member

MizukiTemma commented Jun 26, 2024

@LeandraH @steffenkleinle
Sorry, one more question: can location_url be removed without problem or is it being used somewhere in the app?

@steffenkleinle
Copy link
Member

@LeandraH @steffenkleinle
Sorry, one more question: can location_url be removed without problem or is it being used somewhere in the app?

It is not yet used so it can easily be removed.

@LeandraH
Copy link
Author

LeandraH commented Jul 1, 2024

Awesome, thank you for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants