How do I get current url of any BP page/component/etc..?
e.g., native WP get_permalink for example.com/username/profile/ shows example.com/members.
what should be used instead?
don’t know how bad this method is, but `$_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]` worked fine for me. From my unprofessional point, central wrapper would be easier
P.S. Lost some minutes, because of “It looks like you’ve already said that!” – strange behavior + small mistake with you’ve.
You must be logged in to reply to this topic.