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

Remove basePath on next page URI to prevent no data available error #1356

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

AlexisSouquiere
Copy link
Collaborator

@AlexisSouquiere AlexisSouquiere commented Jan 31, 2023

GET /topic/{topicName}/data returns in the after variable the URI to call to get the next page of data. When using context-path in Micronaut, the context-path is added in the URI.
image

The problem is that we add it another time in the uriTopicData endpoint.
image

This leads to a /linked/linked/api/... call which fails and show the issue mentionned in #1298.
image

If we keep only the after URI as it is and don't add the basePath, pagination works well with context-path

@AlexisSouquiere
Copy link
Collaborator Author

Hi @tchiotludo ! Will you have time to check this other PR please ?

@tchiotludo tchiotludo merged commit d8627c6 into tchiotludo:dev Feb 13, 2023
@tchiotludo
Copy link
Owner

prefect thanks 🚀

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

Successfully merging this pull request may close these issues.

2 participants