Pass last segment to solspace freeform field
You can use the overrideValues parameter to set field values automatically and dynamically. E.g.

{{ craft.freeform.form("composerForm", {
    labelClass: "form-label",
    inputClass: "form-control",
    overrideValues: {
        myFieldHandle: entry.title,
        myOtherField: craft.app.request.getSegment(3),
    }
}).render() }}