Skip to content

Commit

Permalink
fix links with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
streetturtle committed Nov 19, 2023
1 parent b07b00c commit 24acf2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ $(document).ready(function(){
$('li.tab > a').click(function(event){
event.preventDefault();//stop browser to take action for clicked anchor

let currentPage = $(this).text().trim().replace(/\s+/g, '-').toLowerCase();
let currentPage = $(this).text().trim().replace(/\s+/g, '').toLowerCase();
// ga('set', 'page', currentPage);
// ga('send', 'pageview');

Expand Down

0 comments on commit 24acf2f

Please sign in to comment.