justinwalsh/daux.io — pull request #208 by jLukeC (2014-08-07 18:17:17+00:00)
Title: fix base path to work locally with clean urls

Currently daux does not work when run locally without disabling clean_urls due to an issue with $relative_url and $base_path. It's confusing for some people when they first start using daux and in general I thought it was valuable to fix it. Now clean urls will only affect the url scheme and not the ability to run it locally

addresses https://github.com/justinwalsh/daux.io/issues/152
and also https://github.com/justinwalsh/daux.io/issues/140

before: run locally with clean urls on
![](https://cloud.githubusercontent.com/assets/1336484/2641019/d1d9bb02-bef2-11e3-9d0f-642929658d30.png)

after: run locally with clean urls on or off
![screen shot 2014-08-07 at 2 11 00 pm](https://cloud.githubusercontent.com/assets/1421384/3846657/adec9d7e-1e5e-11e4-99cd-c5a9e06464de.png)