Could we add a query to a sololearn code url? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Could we add a query to a sololearn code url?

Hi! I searched this in the search bar but I didn't find any. I need to add a query to the url (something like code.sololearn.com/5940?ref=tjsjgj&id=0). Could I do that to a code in sololearn and take the query values using a GET function. Thanks!

19th Dec 2018, 2:51 PM
Seniru
Seniru - avatar
3 Answers
+ 6
Well... if you open the below code in your browser, you should see the #html in the URL change to #lol:https://code.sololearn.com/WrCRln5F4K01/?ref=app You could improvise from there, I trust you! EDIT: Open the same code in your browser! It has been improved A LOT!! Now you can see in the URL of the web page the query string! DOUBLE EDIT: the code is in working progress! Don’t bother to look at it. TRIPLE EDIT: completed, but with a few bugs: - the page will reload - the retrieve function won’t work; I fixed it, but it didn’t save and it won’t. It’s a wonder that this worked! Maybe tomorrow? - if you have used it and then used it again, then the query will be very mixed up.
20th Dec 2018, 4:02 AM
Rowsej
Rowsej - avatar
+ 5
Seniru Pasan because you cannot see the page URL in the app, it will not be visible.
20th Dec 2018, 8:28 PM
Rowsej
Rowsej - avatar
+ 4
Rowsej but it should work in phone too
20th Dec 2018, 10:29 AM
Seniru
Seniru - avatar