How to add url parameter to the current url?

后端 未结 7 436
小鲜肉
小鲜肉 2020-12-08 06:49

Currently I\'m at

http://example.com/topic.php?id=14 

and I want to make a link to

http://example.com/topic.php?id=14&         


        
7条回答
  •  天涯浪人
    2020-12-08 06:52

    There is no way to write a relative URI that preserves the existing query string while adding additional parameters to it.

    You have to:

    topic.php?id=14&like=like
    

提交回复
热议问题