<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged absolute</title>
<link>https://www.question2answer.org/qa/tag/absolute</link>
<description>Powered by Question2Answer</description>
<item>
<title>Improvement suggestion: URL expression of Q2A core</title>
<link>https://www.question2answer.org/qa/28492/improvement-suggestion-url-expression-of-q2a-core</link>
<description>

&lt;p&gt;
	In many cases, URL is &lt;strong&gt;relative path&lt;/strong&gt;.&amp;nbsp;This is no problem basically. However, &lt;strong&gt;absolute path&lt;/strong&gt; may be necessary.&amp;nbsp;I want to choose URL expression with admin panel. I overrided qa-base.php::qa_path(), and set qa_opt('site_url') to $rooturl parameter. But, I do not know whether this is enough for me. What do you think?&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/28492/improvement-suggestion-url-expression-of-q2a-core</guid>
<pubDate>Tue, 22 Oct 2013 23:30:05 +0000</pubDate>
</item>
<item>
<title>How to enforce absolute URLs across Q2A site</title>
<link>https://www.question2answer.org/qa/17311/how-to-enforce-absolute-urls-across-q2a-site</link>
<description>

&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Hi,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;I am implementing Q2A as part of my web app (using YII framework). I got most of the stuff working but the relative URLs are causing some issues. I would like to enforce absolute urls everywhere in Q2A including the form actions.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;is there an esier way to achieve that? I saw &amp;nbsp;question &lt;a href=&quot;http://www.question2answer.org/qa/11847/getting-the-url-to-root-outside-of-q2a&quot; rel=&quot;nofollow&quot;&gt;#11847&lt;/a&gt;&amp;nbsp;and &lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Gideon's suggestion to use&amp;nbsp;qa_q_path for specific pages but it doesn't solve my issues. I would prefer if there is a sigle place where I can define / overide and have all the urls as absolute urls.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;is it possible or am I looking to refactor a lot of code?&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Thanks for your help.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Nikhil&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;strong&gt;Edit: &lt;/strong&gt;Here are more details&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Lets say we have two urls&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;a. &lt;span style=&quot;color: rgb(0, 0, 205);&quot;&gt;example.com/q2a/admin&lt;/span&gt;, and&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;b. &lt;span style=&quot;color: rgb(0, 0, 205);&quot;&gt;example.com/q2a/questions&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;My app has its own URL management and if there are relative paths in Q2A then I am seeing two issues&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;1. Once in the admin page (url 1), every thing else points to admin/&amp;lt;URI&amp;gt; so url b &amp;nbsp;above will become&amp;nbsp;&lt;span style=&quot;color: rgb(0, 0, 205);&quot;&gt;example.com/q2a/&lt;strong&gt;admin&lt;/strong&gt;/questions&lt;/span&gt; which ofcourse is not right&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;2. Once on the home page, all the pages jump one directory above so from q2a home page the new url for b becomes&amp;nbsp;&lt;span style=&quot;color: rgb(0, 0, 205);&quot;&gt;example.co&lt;strong&gt;m/q&lt;/strong&gt;uestions &lt;/span&gt;skipping the q2a directory part&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;For my test,&amp;nbsp;I got most of the absolute paths working by changing &amp;nbsp;qa_q_path and&amp;nbsp;qa_q_path_html default for&amp;nbsp;$absolute=true and also within the app converting any call to these two functions with $absolute=false to true. this approach is messy and perhaps I should override the above two methods to always use&amp;nbsp;$absolute=true so as to minimize the changes to q2a code...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span style=&quot;font-family:verdana,geneva,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;All the url's work fine now but I can NOT submit any form. e.g. for ask form, the page url is example.com/q2a/ask and the form post method shows action example.com/q2a/&lt;span style=&quot;color: rgb(26, 26, 166); white-space: pre-wrap;&quot;&gt;?qa=ask &lt;/span&gt;&lt;span style=&quot;white-space: pre-wrap;&quot;&gt;which&lt;span style=&quot;white-space: pre-wrap;&quot;&gt; &lt;/span&gt;is still ok as I can access the page with this url but nothing happens when I submit the form. Same story for all the forms. They are not working. No error message nothing. Not sure is this is due to URLs or I messed up something else. will keep probing... if someone has any pointers, a better approach will appreciate it. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/17311/how-to-enforce-absolute-urls-across-q2a-site</guid>
<pubDate>Wed, 22 Aug 2012 03:05:07 +0000</pubDate>
</item>
<item>
<title>Absolute URLs for all entries in root (html output)?</title>
<link>https://www.question2answer.org/qa/12868/absolute-urls-for-all-entries-in-root-html-output</link>
<description>Hi dear q2a community,&lt;br /&gt;
&lt;br /&gt;
I installed q2a and came across a weird problem, probably because I have q2a in a subfolder and not root of domain.&lt;br /&gt;
&lt;br /&gt;
I get &amp;quot;not found&amp;quot; errors in my log caused by relative paths, such as the javascript embeds or the theme, which are using &amp;quot;./&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To resolve this problem, is there any way to enable full path URLs for all paths on the site? Thank you!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/12868/absolute-urls-for-all-entries-in-root-html-output</guid>
<pubDate>Mon, 20 Feb 2012 11:35:15 +0000</pubDate>
</item>
</channel>
</rss>