Like @TheTimeSavingCo already wrote you can gues the url by your self. Just open manualy a record in your base and than copy the url from your browser. This url contains the id of your base, table, view and the record. The id of the record is at the end of the url. In your script, you can use the url which you copied but you have to replace the record_id part.
For example if this is the URL you copied: https://airtable.com/appID/tableID/viewId/recYqE6YKYkF3cUcL
The bold marked text is the record_ID which you have to replace in your script.
In your script you can build the url like this: "https://airtable.com/appID/tableID/viewId/" + record.id;