I'm doing my first deployment of an Ember app. I've managed to get the compiled app to load the main page with my navbar, but none of the links (which use the LinkTo builtin component) work.
I thought this might be an Apache problem so I wrote an .htaccess file to redirect all requests to the index.html file. With that, when I directly enter, for example:
http://localhost/myApp/user (user is a route)
I get the user index page. But none of the links on that page work either.
Ember Inspector shows that all of the routes appear to be available but I can't seem to access them using LinkTo.
Thanks for any help!
Edit: @Andrey Stukalin's request for my code showing the LinkTo calls led me to remember that I had replaced those months ago with what I thought was a drop-in replacement -- based, but modified, on code here: https://dtang.dev/recreating-link-to-component-in-ember/. Once I replaced those with Ember's LinkTo, the problem was resolved and all links now work.
I really like David Tang's replacement, especially since I could replace the anchor elements with buttons which I find easier to style. It worked fine in development but for some reason, unknown to me, not in production.