JavaScript mendapatkan URL saat ini
var currentUrl = window.location.href;
Grepper
var currentUrl = window.location.href;
var currentLocation = window.location;
var urlRegex = /(https?:\/\/[^ ]*)/;
var input = "https://medium.com/aspen-ideas/there-s-no-blueprint-26f6a2fbb99c random stuff sd";
var url = input.match(urlRegex)[1];
alert(url);
Run code snippet
@if(Request::url() === 'your url here')
// code
@endif