Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
299 views
in Q2A Core by
Hi,

i am trying to add facebook like button on questions list in homepage but when i use this code "qa_item['url']" url looks like "./25/question-url..." And it doesnt work well . How can i find full url of the question on questions list ?

 

Thank you very much

1 Answer

0 votes
by
I think one of these should do:

urlencode(qa_opt('site_url').$this->request)

or

qa_path_html(qa_request())

or

qa_path(qa_q_request($questionid, $title), null,  qa_opt('site_url') , null, null)
...