How to the Get Current Page URL in Gatsby

1 · CSS-Tricks · Dec. 20, 2019, 4:15 p.m.
Summary
This seemingly simple task had me scratching my head for a few hours while I was working on my website. As it turns out, getting the current page URL in Gatsby is not as straightforward as you may think, but also not so complicated to understand. Let’s look at a few methods of making it happen. But first, you might be wondering why on earth we’d even want to do something like this. Why you might need the current URL… Read article The post How to the Get Current Page URL in Gatsby appeared firs...