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

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

                    Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                    Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?