I have a basic page that contains a paragraph which has the following field:
Label = News View
Field Type = Views Reference (reference method = default)
This references a view that has a contextual filter for nodeId. If I set a static value in the paragraph argument (e.g 14), the basic page displays as I want (with the view filtering on NodeId=14).
However, I want this page to filter differently depending on what is in the url (e.g /news/14 or /news/15 etc)
Could anyone please tell me how to do that?
What I am actually trying to achieve (just for reference, not required to solve issue):
A news page that has a paragraph that can be loaded at /news or /news/14. If no number is specified, the page loads the view with no filter. If a number is specified, the page loads the filtered view. The reason I am using paragraphs is that I am actually showing multiple paragraphs each with a different view here, but they all want the same value (or no value) so a solution for one paragraph will suit all.