I am developing a site that uses multiple channels. By necessity, there are a few entries in different channels that share the same URL title. So, for example, I have the following situation:
channel_1 article
URL_title: my-url-title
channel_2 article
URL_title: my-url-title
When I include a channel:entries tag in one template and specify channel=“channel_2” in the tag, the template renders with the article from channel_1, which I can verify by outputting the entry_id of the article to test.
I have tried setting the URL for each channel in the path settings to the respective templates, but the wrong article is still being returned. What is going on? And how can I make sure that the correct article is output to the correct template?