Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Fix issue #99 #104

Merged
merged 2 commits into from
Oct 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dolphiq/redirect",
"description": "Craft redirect plugin provides an easy way to enter and maintain 301 and 302 redirects and 404 error pages.",
"type": "craft-plugin",
"version": "1.0.23",
"version": "1.0.24",
"keywords": [
"craft",
"cms",
Expand All @@ -22,6 +22,11 @@
"name": "Dolphiq",
"email": "[email protected]",
"homepage": "https://dolphiq.nl/"
},
{
"name": "RJ Hallsted",
"email": "[email protected]",
"homepage": "https://github.com/rjhallsted/"
}
],
"require": {
Expand Down
1 change: 1 addition & 0 deletions src/controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public function actionSaveRedirect()
$request = Craft::$app->getRequest();
$redirect = new Redirect();
$redirect->id = $request->getBodyParam('redirectId');
$redirect->uid = $request->getBodyParam('uid');
$redirect->sourceUrl = $request->getBodyParam('sourceUrl');
$redirect->destinationUrl = $request->getBodyParam('destinationUrl');
$redirect->statusCode = $request->getBodyParam('statusCode');
Expand Down
1 change: 1 addition & 0 deletions src/templates/edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{{ redirectInput('settings/redirect') }}

{% if redirect.id %}<input type="hidden" name="redirectId" value="{{ redirect.id }}">{% endif %}
{% if redirect.uid %}<input type="hidden" name="uid" value="{{ redirect.uid }}">{% endif %}
<div class="readable">
<p>{{ "You can use the Redirect plugin to redirect simple routes but also use it for more advanced route matches with parameters"|t('redirect') }}
.<br><a target="_blank"
Expand Down