{"id":130087,"date":"2024-04-17T13:31:30","date_gmt":"2024-04-17T11:31:30","guid":{"rendered":"https:\/\/staging.sp-ps.ch\/?page_id=130087"},"modified":"2024-05-07T17:06:58","modified_gmt":"2024-05-07T15:06:58","slug":"redirections","status":"publish","type":"page","link":"https:\/\/staging.sp-ps.ch\/fr\/guide-site-web\/redirections\/","title":{"rendered":"Guide du site web : Redirections"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"130087\" class=\"elementor elementor-130087 elementor-96281\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ab7958b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"ab7958b\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2aecb35\" data-id=\"2aecb35\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4960b8b elementor-widget elementor-widget-spps_title_text\" data-id=\"4960b8b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spps_title_text.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"title-text-wrapper wrapper-spacing-default\"><div class=\"title-text-title\"><h2>Manuel du site web : Redirections<\/h2><\/div><div class=\"title-text-container\"><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0684664 elementor-widget elementor-widget-spps_tableofcontents\" data-id=\"0684664\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spps_tableofcontents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<ul data-toc><\/ul><script>\/*! Table of Contents jQuery Plugin - jquery.toc * Copyright (c) 2013-2016 Nikhil Dabas * http:\/\/www.apache.org\/licenses\/LICENSE-2.0 *\/ !function(a){\"use strict\";var b=function(b){return this.each(function(){var c,d,e=a(this),f=e.data(),g=[e],h=this.tagName,i=0;c=a.extend({content:\".elementor-location-single \",headings:\"h3,h4,h5,h6\"},{content:f.toc||void 0,headings:f.tocHeadings||void 0},b),d=c.headings.split(\",\"),a(c.content).find(c.headings).attr(\"id\",function(b,c){var d=function(a){0===a.length&&(a=\"?\");for(var b=a.replace(\/\\s+\/g,\"_\"),c=\"\",d=1;null!==document.getElementById(b+c);)c=\"_\"+d++;return b+c};return c||d(a(this).text())}).each(function(){var b=a(this),c=a.map(d,function(a,c){return b.is(a)?c:void 0})[0];if(c>i){var e=g[0].children(\"li:last\")[0];e&&g.unshift(a(\"<\"+h+\"\/>\").appendTo(e))}else g.splice(0,Math.min(i-c,Math.max(g.length-1,0)));a(\"<li\/>\").appendTo(g[0]).append(a(\"<a\/>\").text(b.text()).attr(\"href\",\"#\"+b.attr(\"id\"))),i=c})})},c=a.fn.toc;a.fn.toc=b,a.fn.toc.noConflict=function(){return a.fn.toc=c,this},a(function(){b.call(a(\"[data-toc]\"))})}(window.jQuery);<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6939a78 elementor-widget elementor-widget-spps_title_text\" data-id=\"6939a78\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spps_title_text.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"title-text-wrapper wrapper-spacing-default\"><div class=\"title-text-container\"><div class=\"title-text-text\"><h3>Exemples de situations dans lesquelles les redirections sont utiles<\/h3><p>Il existe diff\u00e9rentes situations dans lesquelles les redirections peuvent \u00eatre utiles.<\/p><h5>Sc\u00e9nario 1 : Lien plus court<\/h5><p>On souhaite souvent pouvoir publier un lien aussi court que possible, par exemple pour l'utiliser dans un produit imprim\u00e9. Un exemple pourrait \u00eatre :<\/p><p style=\"padding-left: 40px;\">Source : <a href=\"https:\/\/staging.sp-ps.ch\/bvg\">https:\/\/staging.sp-ps.ch\/bvg<\/a><br \/>=&gt;<br \/>Cible : <a href=\"https:\/\/staging.sp-ps.ch\/kampagne\/pensionskassen-referendum\/\">https:\/\/staging.sp-ps.ch\/kampagne\/pensionskassen-referendum\/<\/a><\/p><h5>Sc\u00e9nario 2 : lien externe<\/h5><p>Parfois, on souhaite rediriger un lien vers une source externe via le site web du PS, par exemple si l'on souhaite attirer l'attention sur une enqu\u00eate en ligne dans un SMS :<\/p><p style=\"padding-left: 40px;\">Source : <a href=\"https:\/\/staging.sp-ps.ch\/watson-umfrage\">https:\/\/staging.sp-ps.ch\/watson-umfrage<\/a><br \/>=&gt;<br \/>Destination : <a href=\"https:\/\/www.watson.ch\/schweiz\/interview\/554517707-meyer-und-wermuth-ueber-klimakleber-zuwanderung-wokeness-und-die-cs\">https:\/\/www.watson.ch\/schweiz\/interview\/554517707-meyer-und-wermuth-ueber-klimakleber-zuwanderung-wokeness-und-die-cs<\/a><\/p><h5>Sc\u00e9nario 3 : Remplacer les liens automatiques (par ex. listes d'aper\u00e7u pour les mots-cl\u00e9s)<\/h5><p>Pour les mots-cl\u00e9s, les cat\u00e9gories, etc., une page d'aper\u00e7u automatique des contributions qui ont le mot-cl\u00e9 correspondant est cr\u00e9\u00e9e. Il existe cependant parfois des pages d'aper\u00e7u plus appropri\u00e9es, par ex. pour les listes de candidats :<\/p><p style=\"padding-left: 40px;\">Source : <a href=\"https:\/\/sp-aargau.ch\/person-position\/kandidierende-nationalrat\/\">https:\/\/sp-aargau.ch\/person-position\/kandidierende-nationalrat\/<\/a><br \/>=&gt;<br \/>Cible : <a href=\"https:\/\/sp-aargau.ch\/menschen\/nationalratskandidierende\/\">https:\/\/sp-aargau.ch\/menschen\/nationalratskandidierende\/<\/a><\/p><h5><strong>Sc\u00e9nario 4 : Liens de partage pour Whatsapp, Facebook ou Twitter<\/strong><\/h5><p>Il est possible de cr\u00e9er des liens qui ouvrent automatiquement un nouveau message pr\u00e9d\u00e9fini pour Whatsapp, Facebook ou Twitter, qu'il suffit d'envoyer. Ce lien peut par exemple \u00eatre utilis\u00e9 dans une newsletter pour inciter les lecteurs \u00e0 diffuser un message :<\/p><p style=\"padding-left: 40px;\">Source : <a href=\"https:\/\/sp-ps.ch\/whatspp-nachricht-versenden\">https:\/\/sp-ps.ch\/whatspp-nachricht-versenden<\/a><br \/>=&gt;<br \/>Objectif : <a href=\"https:\/\/api.whatsapp.com\/send?text=Bitte+parties+ce+lien%3A+sp-ps.ch\\\">https:\/\/api.whatsapp.com\/send?text=Bitte+parties+ce+lien%3A+sp-ps.ch\\<\/a><\/p><p>La partie du lien cible qui vient apr\u00e8s \"text=\" peut \u00eatre cr\u00e9\u00e9e \u00e0 l'aide de ce site web : <a href=\"https:\/\/www.urlencoder.org\/\">www.urlencoder.org\/<\/a>.<\/p><p>\u00a0<\/p><h3>Vid\u00e9os : Comment cr\u00e9er des redirections<\/h3><\/div><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-e6db8be elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e6db8be\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-ad12c61\" data-id=\"ad12c61\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-cffd114 elementor-widget elementor-widget-video\" data-id=\"cffd114\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;video_type&quot;:&quot;hosted&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"e-hosted-video elementor-wrapper elementor-open-inline\">\n\t\t\t\t\t<video class=\"elementor-video\" src=\"https:\/\/staging.sp-ps.ch\/wp-content\/uploads\/2023\/04\/Weiterleitung_o.mp4\" controls=\"\" preload=\"metadata\" controlsList=\"nodownload\"><\/video>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c99132a elementor-widget elementor-widget-text-editor\" data-id=\"c99132a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Redirection normale<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-1fa6cfc\" data-id=\"1fa6cfc\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t<div class=\"lyte-wrapper\" title=\"Video Placeholder\" style=\"width:420px;max-width:100%;margin:5px;\"><div class=\"lyMe hidef\" id=\"WYL_XHOmBV4js_E\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"https:\/\/staging.sp-ps.ch\/youtubeLyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXHOmBV4js_E%2Fmaxresdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/XHOmBV4js_E\" \/><meta itemprop=\"duration\" content=\"PT16S\" \/><meta itemprop=\"uploadDate\" content=\"2019-01-23T09:41:21Z\" \/><\/div><div id=\"lyte_XHOmBV4js_E\" data-src=\"https:\/\/staging.sp-ps.ch\/youtubeLyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXHOmBV4js_E%2Fmaxresdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Video Placeholder<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/XHOmBV4js_E\" rel=\"nofollow\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/staging.sp-ps.ch\/youtubeLyteCache.php?origThumbUrl=https%3A%2F%2Fi.ytimg.com%2Fvi%2FXHOmBV4js_E%2F0.jpg\" alt=\"Video Placeholder\" width=\"420\" height=\"216\" \/><br \/>Lire cette vid\u00e9o sur YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"Video Placeholder\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div>\t\t<div class=\"elementor-element elementor-element-6bec49e elementor-widget elementor-widget-text-editor\" data-id=\"6bec49e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Redirections pour les liens de partage [TODO]<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-99a3f8a elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"99a3f8a\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;jet_parallax_layout_list&quot;:[]}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-39f0ae0\" data-id=\"39f0ae0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-95e307b elementor-widget elementor-widget-spps_title_text\" data-id=\"95e307b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spps_title_text.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"title-text-wrapper wrapper-spacing-small\"><div class=\"title-text-title\"><h3>Cas particulier : spschweiz.ch \/ pssuisse.ch \/ pssvizzero.ch<\/h3><\/div><div class=\"title-text-container\"><div class=\"title-text-text\"><p>Pour le PS Suisse, il existe trois domaines qui peuvent \u00eatre utilis\u00e9s dans le cadre de redirections :<\/p><ul><li>spschweiz.ch est transform\u00e9 en sp-ps.ch\/de<\/li><li>pssuisse.ch est transform\u00e9 en sp-ps.ch\/fr<\/li><li>pssvizzero.ch est transform\u00e9 en sp-ps.ch\/it<\/li><\/ul><\/div><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Manuel du site web : Redirections Exemples de situations dans lesquelles les redirections sont utiles Il existe diff\u00e9rentes situations dans lesquelles les redirections peuvent \u00eatre utiles. Sc\u00e9nario 1 : Lien [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":130079,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-130087","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/pages\/130087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/comments?post=130087"}],"version-history":[{"count":11,"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/pages\/130087\/revisions"}],"predecessor-version":[{"id":132236,"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/pages\/130087\/revisions\/132236"}],"up":[{"embeddable":true,"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/pages\/130079"}],"wp:attachment":[{"href":"https:\/\/staging.sp-ps.ch\/fr\/wp-json\/wp\/v2\/media?parent=130087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}