Streaming live at 10am (PST)

[SOLVED] Unique URL Modal/Tab


#1

Hi guys,

I'm kind of stuck here and I really don't know if is possible.
I basically need a unique url for my login and sign-in modal.

URL... /modal/tab1
URL... /modal/tab2

I've already tried some custom code that I found here on the forum but I failed miserably :frowning:

Thanks for any help in advanced!

--

Here's my preview:
https://preview.webflow.com/preview/cloudwithme?preview=a93e0f48419ef8e68d4c3548d059bb75


Segmented Controller Nav
#2

[SOLVED]
:slight_smile:
In case someone is also looking for something similar:

Problem: activate a modal and choose a particular tab with URL parameters.
http:// ... ?signup
http:// ... ?login


Footer code:

<script>
//Login and Signup URL parameters
$(document).ready(function(){
function urlparam(){
    var url = window.location.href.split('?')[1];
    if (url == 'login') {
    document.getElementById('loginMainContainer').style.display = 'block';
    $('.login').triggerHandler('click');
} else if (url == 'signup'){
		document.getElementById('loginMainContainer').style.display = 'block';
		$('.signup').triggerHandler('click');
}
}
    urlparam()   
});
</script>

Don't forget to add an id on you modal div [loginMainContainer]
And add an extra class on your tab links .signup / .login

Cheers!
PS.: Thanks @PixelGeek for pushing me forward :slight_smile:


#3