Add this JS script in Elementor → Custom Code at the end of the body.
(function ($) {
$(window).load(function () {
if (window.location.hash) {
console.log("We have some hash!");
var hash = window.location.hash.replace("#", "");
console.log("Filtering...");
$(`li.elementor-portfolio__filter[data-filter=${hash}]`).trigger(
"click"
);
}
});
})(jQuery);
You can find the direct links to each category by putting this snippet in the Console:
$$(".elementor-portfolio__filter").map(f => {
console.log(`${f.innerText} = #${f.dataset.filter}`);
})