Skip to content

Scope management for 'web/url/use_store' config value #514

@Nolwennig-Jeulin

Description

@Nolwennig-Jeulin

Hi,

I wonder why Plugin/RouteParamsResolver getValue scope by store then that impossible to set store_view scope for field id="use_store" value ?

https://github.com/magento/magento2/blob/a947b306335294f61ab633ef75d9047c29988a9b/app/code/Magento/Backend/etc/adminhtml/system.xml#L511
<field id="use_store" translate="label comment" type="select" sortOrder="10" showInDefault="1" canRestore="1">

https://github.com/magento/magento2/blob/a947b306335294f61ab633ef75d9047c29988a9b/app/code/Magento/Store/Url/Plugin/RouteParamsResolver.php#L77

$useStoreInUrl = $this->scopeConfig->getValue(
       Store::XML_PATH_STORE_IN_URL,
-->    StoreScopeInterface::SCOPE_STORE,
       $storeCode
);

(since 2014 at https://github.com/magento/magento2/blob/9c2b633621e69bf2ea0480c1759c4d66739af29b/app/code/Magento/Core/Model/Url/RouteParamsResolver.php#L130 )


This is not a completely selfless request because I would need a website with the store_code in the URL and another website with no store_code in the URL. And this on the same Magento instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions