fix: Scorecard-Button-JS hatte noch format=og hardcodiert
Route-Default ist seit letztem Commit portrait, der Button-Aufruf ueberschrieb das aber explizit mit ?format=og. Param raus, jetzt laeuft alles ueber den Server-Default (portrait, 1080×1350). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5b2930b844
commit
2f9be62649
@ -934,11 +934,13 @@ window.v2ShowMatrixFieldInfo = function(field) {
|
|||||||
window.location.href = 'mailto:?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(body);
|
window.location.href = 'mailto:?subject=' + encodeURIComponent(subject) + '&body=' + encodeURIComponent(body);
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Scorecard-Preview im OG-Format (1200×630) — nutzt /v2/scorecard. */
|
/* Scorecard-Preview — Default ist portrait (1080×1350, Instagram 4:5).
|
||||||
|
Format-Param bewusst NICHT gesetzt, damit sich der Server-Default
|
||||||
|
durchsetzt — sonst muss man hier mitziehen wenn der Default sich
|
||||||
|
wieder aendert. */
|
||||||
window.v2DetailShareScorecard = function() {
|
window.v2DetailShareScorecard = function() {
|
||||||
var url = '/v2/scorecard?drucksache=' + encodeURIComponent(DRS)
|
var url = '/v2/scorecard?drucksache=' + encodeURIComponent(DRS)
|
||||||
+ '&bundesland=' + encodeURIComponent(BL || 'NRW')
|
+ '&bundesland=' + encodeURIComponent(BL || 'NRW');
|
||||||
+ '&format=og';
|
|
||||||
window.open(url, '_blank', 'noopener');
|
window.open(url, '_blank', 'noopener');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user