Skip to content

Commit

Permalink
Now show absolute URL to the boxes in the index browser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Perkins committed May 9, 2014
1 parent 540f728 commit 73e8ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Vube/VagrantCatalog/Catalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ public function execIndexRoute()

$smarty = new Smarty($this->baseDir);

$smarty->assign('BASE_URI', $this->scriptRelativeDir);
$smarty->assign('CATALOG_URI', $this->scriptRelativeDir.'/'.$this->config['catalog-uri']);
$smarty->assign('BASE_URI', $this->baseUri);
$smarty->assign('CATALOG_URI', $this->baseUri.'/'.$this->config['catalog-uri']);

$smarty->assign('pathInfo', $this->pathInfo);
// pathInfo with no leading slash (possibly empty string)
Expand Down
2 changes: 1 addition & 1 deletion templates/index.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<h3>Boxes</h3>
<ul>
{foreach $boxes as $file}
<li><a href="{$CATALOG_URI|escape}{$pathInfo|escape}/{$file|escape}">{$relativePathInfo|escape}{if $relativePathInfo ne ''}/{/if}{$file|escape}</a></li>
<li>{$relativePathInfo|escape}{if $relativePathInfo ne ''}/{/if}{$file|escape} -- <a href="{$CATALOG_URI|escape}{$pathInfo|escape}/{$file|escape}">{$CATALOG_URI|escape}{$pathInfo|escape}/{$file|escape}</a></li>
{/foreach}
{/if}
</ul>
Expand Down

0 comments on commit 73e8ab6

Please sign in to comment.