Answer the question
In order to leave comments, you need to log in
How to open a taba file when accessing a direct link?
I have a site on opencart and on this site there are tabs (tabs) 4 pieces, namely description, reviews, characteristics, video. And for example, when I click on the reviews tab, I should have a form with a name, rating, etc. I can generate it normally, but the problem is that I need a description meta tag and that's why I transferred the feedback form to a separate file and when I click on the reviews tab, I load this file using the load (jquery) method, but at the same time I need a unique url for this page, but I don't have it when loading the page through jquery (load method), so I'm racking my brains on what to do.
the fact is that when you click, for example, on the reviews tab, you need the file to be loaded into a certain div of the product card, which I did, but you also need a unique url when loading this file, that is, as it is loaded into a div, you immediately need to change the url to example from https://store.ru/product_name to https://store.ru/product_name/opinion and so that this url can be copied and sent, for example, via VK and clicking on the link would get to the activated reviews tab with the already loaded a file (with a form) of reviews, a good example is dns-shop
Answer the question
In order to leave comments, you need to log in
History.pushState() does not generate any URLs, you pass the address there yourself.
It's impossible to answer your question without code. I can only assume that you are using browser routing and the server does not know how to process it with a direct call.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question