Использовать тройную кавычку:
scala> s"""File "$file" found!"""
res0: String = File "blubb" found!
Вы должны добавить метод type = "POST" в ajax, как показано ниже
<script>
function InviteLink( id, url ){
console.log(id);
$.ajax({
type: "POST",
url: https://abc.hrm.com/auth/login,
data: { 'id' : id },
success: function(data) {
}
});
}
</script>