Links breaking with double domain When calling my links, they're appearing and trying to link like so:


  testurl.com/university/testurl.com/university/arizona-state/


Really it should just be 


  testurl.com/university/arizona-state/


The line that is generating a category URL:

        &lt;a class="university-widget w-inline-block" href="{{ category.url }}"&gt;


and my general.php:

return array(

  '*' =&gt; array(
  ),

  'localhost' =&gt; array(
    'devMode' =&gt; true,
    'siteUrl' =&gt; 'http://localhost:8888/',
    'server' =&gt; 'localhost',
        'enableCsrfProtection' =&gt; true,
        'defaultWeekStartDay' =&gt; 0,
        'omitScriptNameInUrls' =&gt; 'auto',
        'defaultSearchTermOptions' =&gt; array(
            'subLeft' =&gt; true,
            'subRight' =&gt; true,
        ),
        'cpTrigger' =&gt; 'admin',

    'environmentVariables' =&gt; array(
      'baseUrl'  =&gt; 'http://localhost:8888/',
    ),
    'testToEmailAddress' =&gt; 'dev@email.com',
  ),

  'testurl.com' =&gt; array(
    'siteUrl' =&gt; 'testurl.com',
    'server' =&gt; 'localhost',

        'enableCsrfProtection' =&gt; true,
        'defaultWeekStartDay' =&gt; 0,
        'omitScriptNameInUrls' =&gt; 'auto',
        'defaultSearchTermOptions' =&gt; array(
            'subLeft' =&gt; true,
            'subRight' =&gt; true,
        ),
        'cpTrigger' =&gt; 'admin',

    'environmentVariables' =&gt; array(
      'basePath' =&gt; '/var/www/html/',
      'baseUrl' =&gt; 'http://testurl.com/',
    )
  )
);
Fixed by changing the following line:

'siteUrl' =&gt; 'http://testurl.com',