I am porting a Magento 1 module, which adds a custom category attribute, to Magento 2.
The product is already created in Magento 2 - but now it does not appear in the inside
In the Magento 1 version
config.xml I had:
<config> <frontend> <category> <collection> <attributes> <redirect_url /> </attributes> </collection> </category> </frontend> </config>
This solved the problem.
What is the equivalent of this in Magento 2 ?
Sure, I could load the full category item again in the above method, but this would slow down the site.