Overpass Turbo - how to output as a multilinestring

I need to get a relation (collection of footpaths) from OSM using Overpass Turbo so that when I export it in geoJSON format there is a single multilinestring with all the footpaths. I managed to do this previously, but I’ve lost the query I used. At the moment I’m getting multiple linestrings which doesn’t display quite right in leaflet.js.

I suppose it may not be as simple as this:

[out:json][timeout:25];
rel(1659976);
out geom;

perhaps providing more details about what you are trying would help lead to a better answer.

It seems that when the relation has ‘type’ set to ‘route’ it gets output as a multilinestring, and when ‘type’ is set to ‘network’ it gets output as separate linestrings for each way. My current solution is to set the type to route, do the export, then set it back to network. I don’t see why changing the ‘type’ field should make any difference, but it does.