Using store directive to get url for different store view Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Store code in URL for every store view except for defaultStatic block link cuts part of the urlAdd a variable for current URL to static block/page CMSMagento2: Need current URL in HTML-head: Scripts and Style Sheets for hreflangMagento2 individual URL for each website301 redirect for multi website and store code added to urlChange store code in url without changing store codeMagento2 - Get store url for specific store in static cms blockHow to get category URL in multiple storesMagento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url

Project Euler #1 in C++

Can the Flaming Sphere spell be rammed into multiple Tiny creatures that are in the same 5-foot square?

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

Strange behavior of Object.defineProperty() in JavaScript

How does Belgium enforce obligatory attendance in elections?

Why do aircraft stall warning systems use angle-of-attack vanes rather than detecting airflow separation directly?

Tannaka duality for semisimple groups

How could we fake a moon landing now?

How often does castling occur in grandmaster games?

Trademark violation for app?

Antipodal Land Area Calculation

Is there any word for a place full of confusion?

Most bit efficient text communication method?

What is an "asse" in Elizabethan English?

How many time has Arya actually used Needle?

Sum letters are not two different

How do I find out the mythology and history of my Fortress?

What are the discoveries that have been possible with the rejection of positivism?

How does the math work when buying airline miles?

How can I set the aperture on my DSLR when it's attached to a telescope instead of a lens?

What does Turing mean by this statement?

Is there hard evidence that the grant peer review system performs significantly better than random?

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?



Using store directive to get url for different store view



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Store code in URL for every store view except for defaultStatic block link cuts part of the urlAdd a variable for current URL to static block/page CMSMagento2: Need current URL in HTML-head: Scripts and Style Sheets for hreflangMagento2 individual URL for each website301 redirect for multi website and store code added to urlChange store code in url without changing store codeMagento2 - Get store url for specific store in static cms blockHow to get category URL in multiple storesMagento 2 Wysiwyg editor adding admin/cms/wysiwyg/directive links to store url



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















Scenario:
In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.



Question:

Is there a combination of parameters that can be passed to the store directive to make this happen?

Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.










share|improve this question




























    1















    Scenario:
    In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.



    Question:

    Is there a combination of parameters that can be passed to the store directive to make this happen?

    Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.










    share|improve this question
























      1












      1








      1








      Scenario:
      In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.



      Question:

      Is there a combination of parameters that can be passed to the store directive to make this happen?

      Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.










      share|improve this question














      Scenario:
      In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website.



      Question:

      Is there a combination of parameters that can be passed to the store directive to make this happen?

      Something like store _direct="page-here" store_code=some-code or instead of store code, store_id or anything else.







      magento2 multistore cms






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      MariusMarius

      168k28324692




      168k28324692




















          1 Answer
          1






          active

          oldest

          votes


















          2














          Apparently it does not work with _direct attribute and a different store view, but it works like this:



          store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1


          _nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj



          Leaving it in place removes the SID parameter






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270440%2fusing-store-directive-to-get-url-for-different-store-view%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Apparently it does not work with _direct attribute and a different store view, but it works like this:



            store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1


            _nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj



            Leaving it in place removes the SID parameter






            share|improve this answer



























              2














              Apparently it does not work with _direct attribute and a different store view, but it works like this:



              store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1


              _nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj



              Leaving it in place removes the SID parameter






              share|improve this answer

























                2












                2








                2







                Apparently it does not work with _direct attribute and a different store view, but it works like this:



                store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1


                _nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj



                Leaving it in place removes the SID parameter






                share|improve this answer













                Apparently it does not work with _direct attribute and a different store view, but it works like this:



                store url="page-url-here" _scope_to_url=1 _scope=store-code-or-id-here _nosid=1


                _nosid=1 is optional. If you remove it the url will look like http://example/com/page-url-here/?SID=ajshajkshdaj



                Leaving it in place removes the SID parameter







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                MariusMarius

                168k28324692




                168k28324692



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270440%2fusing-store-directive-to-get-url-for-different-store-view%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form