Hey guys,
I have a little issue…
On my Homepage or in Navigation i have “Nav-Link” called “iPhone” and i want to link them to certain tabs on my “Oprava” page. And it Works perfectly !
But if I’m trying to link “Breadcrumps” on this page - https://iservis.webflow.io/opravy/iphone-xs-max
with URL link /opravy?tab=target-tab-iphone
its not working, I’ve also tried ../opravy?tab=target-tab-macs
even 1 dot, 2 dots.
But Im not able to link it -
Here is custom code for linking tabs →
<Script>
var Webflow = Webflow || [\*];
Webflow.push(function () {
var tabName = getParam('tab');
if (!tabName) return;
$('.' + tabName).triggerHandler('click');
function getParam(name) {
name = name.replace(/[\[\*]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results == null ? "" : decodeURIComponent(resuts[1].replace(/\+/g, " "));
}
});
<Script>
READ ONLY PROJECT - https://preview.webflow.com/preview/iservis?utm_source=iservis&preview=2b7959e95c7ef355b70014a7842cc445
Thanks a lot !!