Ole Posted August 5, 2014 Share Posted August 5, 2014 Hey Guys,I need a bit support with a Singlepage-layout.The Homepage has different sections, which the user can directly jump to, with anchor (#) Links. This works fine on the homepage on the domain-root-level (domain.com/).But the site contains other subsites, like Imprint, Privacy Policy etc.When I want to navigate from a subsite to a specific section on the homepage, Target-urls like "domain.com/#anchor" don't work. When I use the same adress direct in the browser-adress-field, it works fine. But it doesn't as clickable link target.Am I doing something wrong?Has anybody a idea or a solution?Cheers Link to comment Share on other sites More sharing options...
Nico Knoll Posted August 5, 2014 Share Posted August 5, 2014 How do you defined your anchors? Giving subsections ids or some jQuery magic? Link to comment Share on other sites More sharing options...
Ole Posted August 5, 2014 Author Share Posted August 5, 2014 Plain and easy HTML IDs. No Scripts. Script just for Animated (Smooth) Scrolling.It works as well, when the link is not directed to the domain root adress. For example, when the Homepage is located in a Subdir on the Server (domain.com/subdir/) or when the Singlepage is not the Homepage (domain.com/path/). Link to comment Share on other sites More sharing options...
Nico Knoll Posted August 5, 2014 Share Posted August 5, 2014 Could you send me a link to the page (via PM) and I'll try to reconstruct it. 1 Link to comment Share on other sites More sharing options...
Ole Posted August 6, 2014 Author Share Posted August 6, 2014 Big Thanks to Nico!The "Smooth Scroll JS" was too active and has blocked the Link...PW is still awesome! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now