E
E
ESSES18682022-02-15 23:21:31
CMS
ESSES1868, 2022-02-15 23:21:31

Regular and service CMS page on the same address?

There is a CMS. After filling out a form or similar action, the user receives an informational message (for example, that the order has been accepted).

Externally, it looks like a different page, but the URL does not change and no parameters are added to it.

How it works? Through the browser console, I was able to understand that this had something to do with different request types (post and get), but I'm not sure.

And yes, search engines cannot index such pages (for example, through browser metrics)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
ThunderCat, 2022-02-16
@ESSES1868

If the page is not reloaded , then either Ajax, as written above, or stupidly part of the content is hidden, and another, previously hidden, is shown instead. In both cases, it's just Javascript's job of manipulating page elements.
Judging by the mentioned post and get requests, it is possible that the page is reloaded , and depending on the request method, different content is shown, which is even simpler, but in general a little architecturally crooked. Implemented by a simple check for the request method in the backend code.

A
Alexander Karabanov, 2022-02-15
@karabanov

The browser makes an AJAX request in the background and redraws the page according to the response.

A
AlexVWill, 2022-02-16
@AlexVWill

JavaScript hides one block and shows another. <div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question