Is it possible to get the #id anchor in the URL?

EG: https:www.domain.co.uk/page#anchor

I see url helper has something called {fragment} but It doesnt output anything?

Any help greatly appreciated.

  • What do you want to do with the anchor? EE doesn't acknowledge hashes but be interested in why you need this behaviour – stuartmcd69 Feb 24 '17 at 5:59

I know this is possible with JavaScript location.hash but I don't think EE segment tags or php can do it easily if at all.

Please reference the location hash documentation here. https://www.w3schools.com/jsref/prop_loc_hash.asp

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.