Skip to content

Commit

Permalink
refactor: Add specificTypeId hidden input
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jan 16, 2025
1 parent 3c6d056 commit 6794c2a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/templates/settings/content/facebook.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<input type="hidden" name="sourceHandle" value="{{ currentSourceHandle }}">
<input type="hidden" name="sourceBundleType" value="{{ currentSourceBundleType }}">
<input type="hidden" name="typeId" value="{{ currentTypeId }}">
<input type="hidden" name="specificTypeId" value="{{ specificTypeId }}">
{{ redirectInput("seomatic/edit-content/#{currentSubSection}/#{currentSourceBundleType}/#{currentSourceHandle}/#{currentSiteHandle}?typeId=#{currentTypeId}") }}

{% if currentUser.can("seomatic:content-meta:facebook") %}
Expand Down
1 change: 1 addition & 0 deletions src/templates/settings/content/general.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<input type="hidden" name="sourceHandle" value="{{ currentSourceHandle }}">
<input type="hidden" name="sourceBundleType" value="{{ currentSourceBundleType }}">
<input type="hidden" name="typeId" value="{{ currentTypeId }}">
<input type="hidden" name="specificTypeId" value="{{ specificTypeId }}">
{{ redirectInput("seomatic/edit-content/#{currentSubSection}/#{currentSourceBundleType}/#{currentSourceHandle}/#{currentSiteHandle}?typeId=#{currentTypeId}") }}

{% if currentUser.can("seomatic:content-meta:general") %}
Expand Down
1 change: 1 addition & 0 deletions src/templates/settings/content/sitemap.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<input type="hidden" name="sourceHandle" value="{{ currentSourceHandle }}">
<input type="hidden" name="sourceBundleType" value="{{ currentSourceBundleType }}">
<input type="hidden" name="typeId" value="{{ currentTypeId }}">
<input type="hidden" name="specificTypeId" value="{{ specificTypeId }}">
{{ redirectInput("seomatic/edit-content/#{currentSubSection}/#{currentSourceBundleType}/#{currentSourceHandle}/#{currentSiteHandle}?typeId=#{currentTypeId}") }}

{% if currentUser.can("seomatic:content-meta:sitemap") %}
Expand Down
1 change: 1 addition & 0 deletions src/templates/settings/content/twitter.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<input type="hidden" name="sourceHandle" value="{{ currentSourceHandle }}">
<input type="hidden" name="sourceBundleType" value="{{ currentSourceBundleType }}">
<input type="hidden" name="typeId" value="{{ currentTypeId }}">
<input type="hidden" name="specificTypeId" value="{{ specificTypeId }}">
{{ redirectInput("seomatic/edit-content/#{currentSubSection}/#{currentSourceBundleType}/#{currentSourceHandle}/#{currentSiteHandle}?typeId=#{currentTypeId}") }}

{% if currentUser.can("seomatic:content-meta:twitter") %}
Expand Down

0 comments on commit 6794c2a

Please sign in to comment.