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

fix: LDP-2424: Fix server API routes issue with i18n menus #192

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

vloss3
Copy link
Contributor

@vloss3 vloss3 commented Feb 9, 2024

No description provided.

useFetchOptions.baseURL = '/api/menu'
// menuPath should not start with a slash.
if (menuPath.value.startsWith('/')) {
menuPath.value = menuPath.value.substring(1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable, but we should make sure this cannot happen again by adding a suiting test-coverage. It seems we currently lack test-coverage for the i18n case - let's add this!

@vloss3 vloss3 merged commit 02b60fd into 2.x Feb 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants