Hello, everyone!
There is a domain domen.com and a subdomain poddomen.domen.com
The domain has links leading to the subdomain, depending on how you click on which subdomain should be either open or hidden (close) block
Link 1
Link 2
Lorem ipsum
.block {
display: none;
}
.block.open {
display: block;
}
Question: How do I transfer state parameters from a domain to a subdomain?
$('a').on('click', function () {
e.preventDefault();
location.href = $(this).getAttribute('href') + '?' +$(this).data('display');
});