+ 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!
3 Respuestas
+ 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.
+ 5
Seniru Pasan because you cannot see the page URL in the app, it will not be visible.
+ 4
Rowsej but it should work in phone too