Skip to content

Commit

Permalink
Merge branch 'release/3.3.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Nov 23, 2023
2 parents ad731ed + 8f5d05b commit b4a6051
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 30 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 3.3.8 - 2023-11-23
### Fixed
- Redirects and 404's now works for users that only have access to 1 site. ([#87](https://github.com/studioespresso/craft-seo-fields/issues/87))



## 3.3.7 - 2023-11-19
### Fixed
- Fixed an issue where page title wouldn't be used as fallback meta title ([#86](https://github.com/studioespresso/craft-seo-fields/issues/86))
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "studioespresso/craft-seo-fields",
"description": "Fields for your SEO & OG meta data",
"type": "craft-plugin",
"version": "3.3.7",
"version": "3.3.8",
"keywords": [
"craft",
"cms",
Expand Down
33 changes: 7 additions & 26 deletions src/templates/_notfound/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,31 +40,6 @@
</div>
<input type="hidden" name="siteId" value="{{ currentSite.id }}">
{% endif %}
{# <div id="handles-btn" class="btn menubtn"#}
{# data-icon="tool">{% if not craft.app.request.getParam('redirect') %}#}
{# {{ "All 404's"|t('seo-fields') }}{% else %}{{ craft.app.request.getParam('redirect') == "handled" ? "Handled" : "Not handled" }}{% endif %}</div>#}
{# <div class="menu">#}
{# <ul class="padded">#}
{# <li>#}
{# <a href="{{ url('seo-fields/not-found' ) }}"#}
{# {% if not craft.app.request.getParam('redirect') %}class="sel" {% endif %}>#}
{# {{ "All 404's"|t('seo-fields') }}#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="{{ url(craft.app.request.getUrl(), { redirect: "handled"}) }}"#}
{# {% if craft.app.request.getParam("redirect") == "handled" %}class="sel"{% endif %}>#}
{# {{ "Handled" }}#}
{# </a>#}
{# </li>#}
{# <li>#}
{# <a href="{{ url(craft.app.request.getUrl(), { redirect: "not-handled"}) }}"#}
{# {% if craft.app.request.getParam("redirect") == "not-handled" %}class="sel"{% endif %}>#}
{# {{ "Not handled" }}#}
{# </a>#}
{# </li>#}
{# </ul>#}
{# </div>#}
{% endblock %}


Expand Down Expand Up @@ -115,10 +90,16 @@

];

{% if craft.app.sites.getEditableSites()|length < 2 %}
{% set site = "" %}
{% else %}
{% set site = craft.app.request.getQueryParam('site', '') %}
{% endif %}

new Craft.VueAdminTable({
container: '#seofields-notfound',
columns: columns,
tableDataEndpoint: "{{ cpUrl('seo-fields/cp-api/not-found', {site: craft.app.request.getQueryParam('site', '')} ) }}" ,
tableDataEndpoint: "{{ cpUrl('seo-fields/cp-api/not-found', {site: site ) }}" ,
deleteAction: 'seo-fields/not-found/delete',
checkboxes: 0,
search: true,
Expand Down
12 changes: 9 additions & 3 deletions src/templates/_redirect/_index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@
}
];

{% if craft.app.sites.getEditableSites()|length < 2 %}
{% set site = "" %}
{% else %}
{% set site = craft.app.request.getQueryParam('site', '') %}
{% endif %}

new Craft.VueAdminTable({
container: '#seofields-redirects',
columns: columns,
tableDataEndpoint: "{{ cpUrl('seo-fields/cp-api/redirects', {site: craft.app.request.getQueryParam('site', '')} ) }}" ,
tableDataEndpoint: "{{ cpUrl('seo-fields/cp-api/redirects', {site : site} ) }}" ,
deleteAction: 'seo-fields/redirects/delete',
checkboxes: 0,
search: true,
allowMultipleSelections: false,
});
allowMultipleSelections: false
});

{% endjs %}

0 comments on commit b4a6051

Please sign in to comment.