aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/phorkie/Repository.php')
-rw-r--r--src/phorkie/Repository.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/phorkie/Repository.php b/src/phorkie/Repository.php
index 9de2e1a..467456b 100644
--- a/src/phorkie/Repository.php
+++ b/src/phorkie/Repository.php
@@ -321,6 +321,9 @@ class Repository
{
if ($type == 'edit') {
$link = $this->id . '/edit';
+ if ($option !== null) {
+ $link .= '/' . urlencode($option);
+ }
} else if ($type == 'display') {
$link = $this->id;
} else if ($type == 'fork') {