Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2018 05:13:57 AM (20 months ago)
Author:
imath
Message:

BP Nouveau Messages UI: Improve the Backbone router using pushState

In order to be consistent with conditional template tags such as bp_is_messages_compose_screen(), the routes of the Backbone router have been updated to match Messages component canonical URLs

Props sbrajesh, djpaul

See #7840 (Trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    r12104 r12115  
    155155        <div class="thread-subject">
    156156            <span class="thread-count">({{data.count}})</span>
    157             <a class="subject" href="#view/{{data.id}}">{{data.subject}}</a>
     157            <a class="subject" href="../view/{{data.id}}/">{{data.subject}}</a>
    158158        </div>
    159159        <p class="excerpt">{{data.excerpt}}</p>
     
    204204                    <# } #>
    205205
    206                     <a href="#view/{{data.id}}" class="message-action-view bp-tooltip bp-icons" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>">
     206                    <a href="../view/{{data.id}}/" class="message-action-view bp-tooltip bp-icons" data-bp-action="view" data-bp-tooltip="<?php esc_attr_e( 'View full conversation and reply.', 'buddypress' ); ?>">
    207207                        <span class="bp-screen-reader-text"><?php esc_html_e( 'View full conversation and reply.', 'buddypress' ); ?></span>
    208208                    </a>
Note: See TracChangeset for help on using the changeset viewer.