Skip to content

Commit 2c47200

Browse files
committed
Fixed urls for use in urlManager
1 parent 4c94e8f commit 2c47200

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: src/themes/flat/layouts/_after_header.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="container">
88
<div class="row">
99
<div class="col-xs-12" style="padding-top:10px;padding-bottom:10px">
10-
<?= Html::beginForm('/package/search', 'GET', ['id' => 'search-form', 'autocomplete' => 'off']) ?>
10+
<?= Html::beginForm(['/package/search'], 'GET', ['id' => 'search-form', 'autocomplete' => 'off']) ?>
1111
<?= Html::input('text', 'query', (isset($this->params['searchQuery']) ? $this->params['searchQuery'] : ''), [
1212
'id' => 'query',
1313
'required' => true,

Diff for: src/themes/original/layouts/_header.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'options' => ['class' => 'navbar-nav navbar-right'],
3636
]) ?>
3737

38-
<?= Html::beginForm('/package/search', 'GET', ['id' => 'search-form', 'class' => 'navbar-form navbar-right', 'autocomplete' => 'off']) ?>
38+
<?= Html::beginForm(['/package/search'], 'GET', ['id' => 'search-form', 'class' => 'navbar-form navbar-right', 'autocomplete' => 'off']) ?>
3939
<div class="form-group has-feedback">
4040
<?= Html::input('text', 'query', (isset($this->params['searchQuery']) ? $this->params['searchQuery'] : ''), [
4141
'id' => 'query',

Diff for: src/views/package/search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
<?php
4242
$options = Json::encode([
43-
'url' => Url::to('update'),
43+
'url' => Url::to(['update']),
4444
'type' => 'post',
4545
'data' => [
4646
'query' => $package->getFullName(),

Diff for: src/views/site/index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
use the search line at the top of the page to check specific package health.
3838
</p>
3939

40-
<p><?= Html::a('More info &raquo;', '/site/about', ['class' => 'btn btn-default']) ?>
40+
<p><?= Html::a('More info &raquo;', ['/site/about'], ['class' => 'btn btn-default']) ?>
4141
</div>
4242
<div class="col-lg-4">
4343
<h2>Usage</h2>
@@ -69,7 +69,7 @@
6969
</p>
7070

7171
<p>Questions?</p>
72-
<p><?= Html::a('More info &raquo;', '/site/contact', ['class' => 'btn btn-default']) ?>
72+
<p><?= Html::a('More info &raquo;', ['/site/contact'], ['class' => 'btn btn-default']) ?>
7373
</div>
7474
</div>
7575

0 commit comments

Comments
 (0)