Skip to content

Commit 583b484

Browse files
committed
Fix: URL fragment in product detail page not working as expected magento#39599
1 parent 96dec49 commit 583b484

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Review/view/frontend/web/js/process-reviews.js

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ define([
3131
});
3232
}).always(function () {
3333
if (fromPages == true) { //eslint-disable-line eqeqeq
34+
var reviewTab = $('.product.data.items').find('[data-role="content"]').index($('#reviews'));
35+
if (reviewTab >= 0) {
36+
$('.product.data.items').tabs('activate', reviewTab);
37+
}
3438
$('html, body').animate({
3539
scrollTop: $('#reviews').offset().top - 50
3640
}, 300);

0 commit comments

Comments
 (0)