A
A
Anton Misyagin2018-03-14 18:31:03
Web development
Anton Misyagin, 2018-03-14 18:31:03

How to encode in url a parameter that is another url?

How to encode inside the page address another page as a parameter?
url1: www.domain1.com
url2:
domain2.com?p1=345&p2=parameterofurl2
www.domain1.com?url=domain2.com?p1=345&p2=parameterofurl2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Misyagin, 2018-03-14
@sunnmas

A perverted solution to the problem (code on RoR)
When going to url1, we read the parameters url and p2, and then we get url2: well, then we leave with a safe and sound url2: Although the solution is bad. I would be happy to fix it as it should, if you tell me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question