I’ve built a simple one page full screen coming soon website featuring 2 sections and used full page.js for the functionality.
It’s features an intro animation (page load) when you first land on the page.
no navigation so the user simple scrolls down to a section ( 2 ) then back up to section ( 1 )
Everything works perfectly.
But does anyone know how to remove # from the url when the user scrolls to section(s) ??
instead of hash url for the section like
(example.com / #section2)`
I would like clean URL like
Because the issue I have…
(Scenario)
When user scrolls to section 2 potentially shares the website.
The new user is greeted with section 2
when they first visit the website
(example.com / #section2)
instead of
(example.com)
Any pointers or advice would be greatly appreciated.
PS. I read somewhere about removing data anchors from the Java script to make it work🤷♂️