K
K
Kek1452019-05-19 09:39:16
opencart
Kek145, 2019-05-19 09:39:16

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

1 answer(s)
A
Alexey Ukolov, 2019-05-19
@alexey-m-ukolov

History​.push​State() 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 question

Ask a Question

731 491 924 answers to any question