JS
fetch('http://localhost/uyari.php?test=1').then(response => {
let query = response.url.split('?')[1],
modal = query ? (query.indexOf('test=1') > -1) : false
console.log(modal ? 'Modalı açabilirsin' : 'Bir şey yok')
})