In this file go to line and comment those out 40-43 and 44-49 it should look as follows:
return function (config) {// var reviewTab = $ (config.reviewsTabSelector),
// requiredReviewTabRole = 'tab';
// if (reviewTab.attr ('role') === requiredReviewTabRole && reviewTab.hasClass ('active')) {
processReviews (config.productReviewUrl);
//} else {
// reviewTab.one ('beforeOpen', function () {
// processReviews (config.productReviewUrl);
//});
//}
$ (function () {
$ ('. product-info-main .reviews -actions a'). click (function (event) {
var acnchor;
event.preventDefault ();
acnchor = $ (this). attr ('href'). replace (/ ^.
$ ('. product.data.items [data-role = "content"]'). each (function (index) {// eslint-disable-line
if (this.id == 'reviews') {// eslint -disable-line eqeqeq
$ ('. product.data.items'). tabs ('activate', index);
$ ('html, body'). animate ({
scrollTop: $ ('#' + acnchor) .offset () .top - 50
}, 300);
}
});
});
});
};
We are telling Magento not to check if the reviews are in a tab but just render them either way.
Don't forget to recreate the symlinks in pub static by doing the following command in your CLI in the root of your Magento 2 store:
rm -rf pub / static / *Always be careful with the rm -rf command because if you type the path incorrectly you might remove the entire directory!
That should do the trick!