Horje
check url if it has trailing slash Code Example
check url if it has trailing slash
$getWholeUrl = "http://".$_SERVER['HTTP_HOST']."".$_SERVER['REQUEST_URI']."";

//The output would be 
/*
  http://localhost/tabulation/event/event_name/
*/

if(substr($getWholeUrl , -1)=='/'){
    //Add your condition here

}




Javascript

Related
js class Code Example js class Code Example
live server in javascript Code Example live server in javascript Code Example
double logical not javascript Code Example double logical not javascript Code Example
express proxy Code Example express proxy Code Example
javascript location.href Code Example javascript location.href Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9