Thank you for the in-depth explanation. I thought I knew the purpose of handlers, in my real project I have handlers for fetching the menus as well as the sidebars. Both of theses return 404s when I’m in the /cy subdirectory.
I’ve pushed my language switcher and my menu handler to my test repo to help you better understand my problem.
I’m trying to implement a language switcher so a user can look at an individual post click on the language switcher and be taken to the translated post and vice versa. However, because the fetch request returns a 404 in the /cy subdirectory I cannot access the link for the translated post.
The response for my menu can be found at frontity.state.theme.menu. I have not bothered displaying the menu anywhere in this test site.