Tweeted twitter.com/StackMagento/status/1045961560743645185
2 added 4 characters in body
source | link

We need a module to function differently and show different UI if its comes with different frontname

i.e

If Externalvendor/Module1 has routes like

    <router id="standard">
        <route id="routing1" frontName="routing1">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

For above routing I tried adding routing alias under Custom/Module1 routes like

   <router id="standard">
        <route id="routing2" frontName="routing2">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

So here I was expecting when I access domain.com/routing2domain.com/routing2 it will load same front pages like domain.com/routing1domain.com/routing1 but currently it shows white page and I am not seeing any exception or no error log. How should be this done?

We need a module to function differently and show different UI if its comes with different frontname

i.e

If Externalvendor/Module1 has routes like

    <router id="standard">
        <route id="routing1" frontName="routing1">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

For above routing I tried adding routing alias under Custom/Module1 routes like

   <router id="standard">
        <route id="routing2" frontName="routing2">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

So here I was expecting when I access domain.com/routing2 it will load same front pages like domain.com/routing1 but currently it shows white page and I am not seeing any exception or no error log. How should be this done?

We need a module to function differently and show different UI if its comes with different frontname

i.e

If Externalvendor/Module1 has routes like

    <router id="standard">
        <route id="routing1" frontName="routing1">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

For above routing I tried adding routing alias under Custom/Module1 routes like

   <router id="standard">
        <route id="routing2" frontName="routing2">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

So here I was expecting when I access domain.com/routing2 it will load same front pages like domain.com/routing1 but currently it shows white page and I am not seeing any exception or no error log. How should be this done?

1
source | link

How to add more than one frontname for same Module in Magento 2

We need a module to function differently and show different UI if its comes with different frontname

i.e

If Externalvendor/Module1 has routes like

    <router id="standard">
        <route id="routing1" frontName="routing1">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

For above routing I tried adding routing alias under Custom/Module1 routes like

   <router id="standard">
        <route id="routing2" frontName="routing2">
            <module name="Externalvendor_Module1"/>
        </route>
    </router>

So here I was expecting when I access domain.com/routing2 it will load same front pages like domain.com/routing1 but currently it shows white page and I am not seeing any exception or no error log. How should be this done?