<?php

namespace App\Http\ViewComposers;

use Illuminate\Contracts\View\View;

class Header
{
    protected $sections = [
        [
            'routeKey' => 'developers',
            'title' => 'Entwickler',
        ],

        [
            'routeKey' => 'specification',
            'title'    => 'Spezifikation',
        ],

        [
            'routeKey' => 'api.v1.system.show',
            'params'   => [1],
            'title'    => 'Demo',
        ],

        [
            'title' => 'Kontakt',
            'url'   => 'https://oparl.org/kontakt/',
        ],
    ];

    public function compose(View $view)
    {
        return $view->with('sections', $this->getSections());
    }

    protected function getSections()
    {
        $sections = $this->sections;
        $currentRouteName = \Route::currentRouteName();

        foreach ($sections as $key => $section) {
            if (isset($section['routeKey']) && starts_with($currentRouteName, $section['routeKey'])) {
                $sections[$key]['current'] = true;
                break;
            }
        }

        if (\Auth::check()) {
            array_unshift($sections, [
                'routeKey' => 'admin.dashboard',
                'title'    => '<span class="glyphicon glyphicon-user"></span>',
            ]);
        }

        return $sections;
    }
}

<?php

namespace App\Http\ViewComposers;

use Illuminate\Contracts\View\View;

class Header
{
    protected $sections = [
        [
            'routeKey' => 'developers',
            'title' => 'Entwickler',
        ],

        [
            'routeKey' => 'specification',
            'title'    => 'Spezifikation',
        ],

        [
            'routeKey' => 'api.v1.system.show',
            'params'   => [1, 'format' => 'html'],
            'title'    => 'Demo',
        ],

        [
            'title' => 'Kontakt',
            'url'   => 'https://oparl.org/kontakt/',
        ],
    ];

    public function compose(View $view)
    {
        return $view->with('sections', $this->getSections());
    }

    protected function getSections()
    {
        $sections = $this->sections;
        $currentRouteName = \Route::currentRouteName();

        foreach ($sections as $key => $section) {
            if (isset($section['routeKey']) && starts_with($currentRouteName, $section['routeKey'])) {
                $sections[$key]['current'] = true;
                break;
            }
        }

        if (\Auth::check()) {
            array_unshift($sections, [
                'routeKey' => 'admin.dashboard',
                'title'    => '<span class="glyphicon glyphicon-user"></span>',
            ]);
        }

        return $sections;
    }
}

Fix api demo link to link to html version
Fix api demo link to link to html version
