Skip to content

Commit

Permalink
Fallback to the original message path on the main dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Dec 21, 2018
1 parent 0b8f771 commit c0335a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _inc/jetpack-jitm.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ jQuery( document ).ready( function( $ ) {
var hash = location.hash;

hash = hash.replace( /#\//, '_' );
message_path = message_path.replace( 'toplevel_page_jetpack', 'toplevel_page_jetpack' + hash );
if ( '_dashboard' !== hash ) {
message_path = message_path.replace( 'toplevel_page_jetpack', 'toplevel_page_jetpack' + hash );
}

$.get( window.jitm_config.api_root + 'jetpack/v4/jitm', {
message_path: message_path,
Expand Down

0 comments on commit c0335a2

Please sign in to comment.