Pablo castro Postado Abril 5, 2022 Denunciar Compartilhar Postado Abril 5, 2022 ALGUEM PODERIA ME DISPONIBILIZAR UM PLUGIN BACK REDIRECT PARA WORDPRESS SnavE reagiu a isso 1 Amei Obrigado Haha Uau Triste Grr Curtir × ❤️ Favoritar Citar Link para o comentário
0 ElWolf Postado Abril 27, 2022 Denunciar Compartilhar Postado Abril 27, 2022 Só jogar esse código na página que você quiser o back redirect <script> history.pushState({}, "", location.href); history.pushState({}, "", location.href); window.onpopstate = function(event){ setTimeout(function(){location.href = "SEU LINK";},1); }; </script> eusougiu, Luiz Felipe, Jalim Habei e 2 outros reagiu a isso 5 Amei Obrigado Haha Uau Triste Grr Curtir × ❤️ Favoritar Citar Link para o comentário
0 AlanVilkn Postado Dezembro 17, 2022 Denunciar Compartilhar Postado Dezembro 17, 2022 Em 26/04/2022 em 23:34, ElWolf disse: Só jogar esse código na página que você quiser o back redirect <script> history.pushState({}, "", location.href); history.pushState({}, "", location.href); window.onpopstate = function(event){ setTimeout(function(){location.href = "SEU LINK";},1); }; </script> tem que colocar em algum lugar específico na pág? eu to tentando mas não ta dando bom Amei Obrigado Haha Uau Triste Grr Curtir × ❤️ Favoritar Citar Link para o comentário
0 SnavE Postado Dezembro 18, 2022 Denunciar Compartilhar Postado Dezembro 18, 2022 Em 05/04/2022 em 20:26, Pablo castro disse: ALGUEM PODERIA ME DISPONIBILIZAR UM PLUGIN BACK REDIRECT PARA WORDPRESS TOMA, RATO! <script> (function(b) { var a = { version: "0.0.1", history_api: typeof history.pushState !== "undefined", init: function() { b.location.hash = "#no-back"; a.configure(); }, hasChanged: function() { if (b.location.hash == "#no-back") { b.location.hash = "#"; if (b.location.search == null || b.location.search == undefined || b.location.search == '') { b.location.href = "SEU LINK AQUI"; } else { if (location.search.indexOf("src") > -1) { var partes = location.search.slice(1).split('&'); var data = {}; var new_search = '?'; partes.forEach(function(parte) { var chaveValor = parte.split('='); var chave = chaveValor[0]; var valor = chaveValor[1]; data[chave] = valor; }); data.src = data.src + "-->back_home"; new_search += JSON.stringify(data).replace(/[{}"]/g, "").replace(/[:]/g, "=") .replace(/[,]/g, "&"); b.location.href = "SEU LINK AQUI" + new_search; } else { b.location.href = "SEU LINK AQUI" + b.location.search + "&src=back_home"; } } } }, checkCompat: function() { if (b.addEventListener) { b.addEventListener("hashchange", a.hasChanged, false); } else { if (b.attachEvent) { b.attachEvent("onhashchange", a.hasChanged); } else { b.onhashchange = a.hasChanged; } } }, configure: function() { if (b.location.hash == "#no-back") { if (this.history_api) { history.pushState(null, "", "#"); } else { // b.location.hash = "#"; if (b.location.search == null || b.location.search == undefined || b.location.search == '') { b.location.href = "SEU LINK AQUI"; } else { if (location.search.indexOf("src") > -1) { var partes = location.search.slice(1).split('&'); var data = {}; var new_search = '?'; partes.forEach(function(parte) { var chaveValor = parte.split('='); var chave = chaveValor[0]; var valor = chaveValor[1]; data[chave] = valor; }); data.src = data.src + "-->back_home"; new_search += JSON.stringify(data).replace(/[{}"]/g, "").replace(/[:]/g, "=") .replace(/[,]/g, "&"); b.location.href = "SEU LINK AQUI" + new_search; } else { b.location.href = "SEU LINK AQUI" + b.location.search + "&src=back_home"; } } } } a.checkCompat(); a.hasChanged(); } }; if (typeof define === "function" && define.amd) { define(function() { return a; }); } else { if (typeof module === "object" && module.exports) { module.exports = a; } else { b.noback = a; } } a.init(); }(window)); </script> Amei Obrigado Haha Uau Triste Grr Curtir × ❤️ Favoritar Citar Link para o comentário
Pergunta
Pablo castro
ALGUEM PODERIA ME DISPONIBILIZAR UM PLUGIN BACK REDIRECT PARA WORDPRESS
Link para o comentário
3 respostass a esta questão
Posts Recomendados