A
A
Alexander2021-10-12 21:34:58
React
Alexander, 2021-10-12 21:34:58

Best solutions to write product sorting in url?

What are the ways to write product sorting in ulr?
I am developing an online store that should be able to copy the url link and give it to someone with the current product options or the current page when paginated. I know only one solution is to use query string for this task, but I'm not completely sure that this is the best solution today
I will be grateful for the answer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2021-10-13
@axrising

You can write some unique sorting identifier in the URL, and store the sorting parameters themselves in the database. then the url will not grow with increasing sorting parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question