Path field gives wrong url I made change in setting.php for base url

$base_url = 'http://www.example.com/drupal


Pattern for this content type paths are

[node:title]


pathauto works ok, in the database path is exactly as pattern.

Problem starts when I want to print Content:path in view I am getting

/drupal/[node:title]


I have a problem with path field because I want to rewrite result for logo field using

&lt;a href="/company/[nid][path]"&gt;[field_company_logo]&lt;/a&gt;


And link is http://www.example.com/company/[nid]/drupal/[node:title] instead of http://www.example.com/drupal/company/[nid]/[node:title]
Changing the $base_url variable by no means makes drupal look through every bit of text in the system checking for href's.  So, if you put in

 &lt;a href="/company/.....


it is going to use it exactly as is because it has no idea to do anything else.  It will, however, be more than glad to put it in front of a path if you use some of its built in functions, for example:

 &lt;?php print l('Foo Bar Baz', 'company/foo/bar/baz'); ?&gt;


will create a link to /company/foo/bar/baz if $base_url is not set, or if it is set to drupal, to /drupal/company/foo/bar/baz.

So, to your problem.  Have you tried Views' Output as a link instead of creating the &lt;a&gt; ... &lt;/a&gt; code yourself in Rewrite the output of this field?  That should put that $base_url in there automagically if in the Link path: you enter company/[nid][path] (or whatever tokens you need as you use several different ones in your question).