Skip to content

Commit

Permalink
Fixed deep links to the plugin store
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 17, 2019
1 parent ac4d948 commit f0525d6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Fixed a PHP notice that occurred when updating to Craft 3.1 if there were any plugins installed without settings.
- Fixed a bug where commercial plugins weren’t installable from the Plugin Store.
- Fixed a bug where Matrix block type fields’ `beforeSave()` methods weren’t getting called.
- Fixed a bug where links to the Plugin Store from Settings → Plugins were 404ing.

### Security
- Fixed an XSS vulnerability.
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_special/missing-component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3>{{ name }}</h3>
<a class="btn formsubmit" data-form="x" data-action="plugins/install-plugin" data-param="pluginHandle" data-value="{{ handle }}">{{ 'Install'|t('app') }}</a>
{% endif %}
{% else %}
<a class="btn" href="{{ url('plugin-store/plugin/'~handle) }}">{{ 'Install'|t('app') }}</a>
<a class="btn" href="{{ url('plugin-store/'~handle) }}">{{ 'Install'|t('app') }}</a>
{% endif %}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/settings/plugins/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<table id="plugins" class="data fullwidth collapsible">
<tbody>
{% for handle, config in info %}
{% set pluginStoreUrl = url('plugin-store/plugins/' ~ handle) %}
{% set pluginStoreUrl = url('plugin-store/' ~ handle) %}
<tr id="plugin-{{ handle }}" data-name="{{ config.name }}" data-handle="{{ handle }}">
<th>
<div class="plugin-infos">
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/plugins/dist/PluginManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
var $oldEdition = this.$row.find('.edition');
if (info.hasMultipleEditions || info.isTrial) {
var $newEdition = info.upgradeAvailable
? $('<a/>', {href: Craft.getUrl('plugin-store/plugins/' + handle), 'class': 'edition'})
? $('<a/>', {href: Craft.getUrl('plugin-store/' + handle), 'class': 'edition'})
: $('<div/>', {'class': 'edition'});
if (info.hasMultipleEditions) {
$('<div/>', {'class': 'edition-name', text: info.edition}).appendTo($newEdition);
Expand Down
2 changes: 1 addition & 1 deletion src/web/assets/plugins/dist/PluginManager.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f0525d6

Please sign in to comment.