Skip to:
Content
Pages
Categories
Search
Top
Bottom

Notification is missing “/” in the URL

Viewing 7 replies - 1 through 7 (of 7 total)
  • @cactuscat

    Participant

    Also wanted to add that none of my other links have any problems.

    @cactuscat

    Participant

    Alright, guess I just needed to eat.

    template-parts> header> buddypress-profile.php

    Under //User notifications, first <a class… add a ‘/’ between user_domain and notifications like so:

    bp_loggedin_user_domain( ) . '/' . $bp->notifications->slug )

    Forced the slash and now all is good.

    @emaralive

    Moderator

    Unfortunately, you’ve applied a band-aid at the Theme level. The next Theme update will remove your band-aid and you will have to apply it again, given the approach you’ve taken.

    The bp_loggedin_user_domain( ) function should have returned a URL with a trailing slash, for example:

    http://www.url.com/members/username/

    Which is why the Theme has it written as:

    bp_loggedin_user_domain() . $bp->notifications->slug

    Something is causing the trailing slash to be missing, solving for this will be the fix. Maybe a plugin or some custom code is filtering the return value, such that is stripping the trailing slash.

    Assuming you are using BuddyPress 14.3.3, see the following URL for the source code:

    bp_loggedin_user_domain()

    @thomasbaum572

    Participant

    I’ve also got the solution. Thank You!

    @cactuscat

    Participant

    Yeah, theme update cleared it. I spent 5 hours trying to find out why the trailing slash isn’t working, even telling it to force one. Clearing all of the plugins didn’t fix it. All other slashes work except for that specific header. I have to just keep fixing it manually I guess.

    @emaralive

    Moderator

    @cactuscat

    What is your permalink structure set to, e.g., plain or pretty URLs?

    @jinakiru45

    Participant

    cool

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar