Questions tagged [url]

Denotes question about URL issues and custom URLs.

255 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
1k views

Magento2: Remove Store Code URL only for default store

I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like: http://mystore....
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
3
votes
0answers
347 views

Magento 2: dataprovider getData() get called twice losing my requestdata

In magento 2 I created a grid through UI components. It gets populated with my dataprovide class getData method: public function getData() { $questionSetId = $this->request->getParam('...
3
votes
0answers
1k views

Get frontend category URL in admin area with correct base URL

I try to load categories in the admin area with store specific values. $this->categoryCollectionFactory->create() ->setStoreId($storeId) ->addAttributeToSelect(['name', 'url_key'])...
3
votes
0answers
424 views

Magento2 : Create Dynamic URL by controller

I need the url structure like this : From this url :- http://localhost/magento27/review/product/view/id/936/ To this url :- http://localhost/magento27/women/review/love-this-product/936 women :- ...
3
votes
0answers
170 views

Keep old urls for default store view in magento after enabling store code in urls

I have enabled store codes for my Magento website and it is working fine. I have two store views, arabic and english. For arabic, i have store code ar and en for english. My default store view is ...
2
votes
0answers
37 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
2
votes
1answer
44 views

How to update the mini-cart proceed to checkout according to customer login in magento 2?

I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart. How to edit the minicart.js file to achieve this?...
2
votes
1answer
69 views

Magento 2 - Frontend Controller conditional based 404 page

I have custom frontend controller, I added the URL Rewrite for this controller I want to figure out the way, How I send requesting URL to 404 page based on some condition within the controller. I ...
2
votes
0answers
33 views

Magento 2 EE remove url trailing slash through htaccess

I am using below code in htaccess to remove trailing slash in urls. But after adding this code my admin panel stops working and shows error - Too many redirects. I don't know whether to place this ...
2
votes
1answer
27 views

how to create more then one submit_url in ui_component Magento 2

I need to submit data from ui_component to another class so I created two buttons and on one I set the submit_url and works perfectly but in other class I cannot get the data to perform some ...
2
votes
0answers
117 views

How to remove store code when changing store views?

So I've setup multiple views for my website, but the thing is, when I change store views, the URL ends up looking like this: https://www.domain.com/shop/product1.html?___store=english&...
2
votes
0answers
233 views

Magento 2 : How to remove the default Store langauge code from the URL

I have integrated multi language stores one for "EN" and second for "DE" After changed options "Add Store Codes to URL"=>"YES" (Magento2:: System -> Configuration -> Web -> Add Store Codes to URL=>...
2
votes
0answers
318 views

Magento2 get url of all CMS pages using their identifiers

I am preparing one common array which returns the complete details of all CMS pages. In this array, I need to pass the URL of all cms pages. I do have an identifier of all pages. How can I get the URL ...
2
votes
1answer
26 views

How to exclude ® ™ signs in URL

We are having a URL issues For Example - If Title = Bose® SoundLink™ 10 Wireless Music System Then URL = bose-soundlink-10-wireless-music-system But in our new website URL is - boser-soundlinktm-...
2
votes
1answer
1k views

Magento 2: “Use Categories Path for Product URLs” configuration does not working correctly

I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them. I set “Use ...
2
votes
0answers
14 views

How come for a batch of newly imported products the URL structure is different than our normal configuration?

I imported some 34 simple products to our admin store, base site, via MageBees' Import/Export Products extension, as I often do. The problem is that their URLs are rendering as default/catalog/product/...
2
votes
1answer
179 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
2
votes
0answers
297 views

Magento 2 - media URL

I have recently migrated a Magento 1.9.x site to Magento 2.2.2. On my product pages, I have noticed that one attribute (which is Text Area), whenever I used Magento directives such as {{media url=...}...
2
votes
0answers
122 views

Downloadable product on Amazon S3

I'm trying to implement the following scenario: Host downloadable product on AmazonS3 Make S3 files private (not accessibile by direct url) Enable access if Referrer is mywebsite If I try to point ...
2
votes
1answer
205 views

Category URL number need removing

My URLs for categories keep adding numbers at the end of the URL in this format: /solid-oak-beds-13.html It is getting increasingly hard to keep track of links, since the urls are not getting ...
2
votes
1answer
1k views

Add noindex to single category in Magento 1.9

I want to modify this line for only one category: <meta name="robots" content="INDEX,FOLLOW" /> I want to add noindex like this: <meta name="robots" content="NOINDEX,FOLLOW" /> I tried ...
2
votes
1answer
906 views

URL Rewrite Rules in Admin

I apologize if this is a duplicate request someplace else, but I could not find an easy way to locate it if it exists, so here we go. I want a simple breakdown how to use the fields in the URL ...
2
votes
1answer
310 views

Add product sku in URL

How can I dynamically change the url of a product? Now I got this url www.domain.com/product-name.html I need to add SKU, to my url like this: www.domain.com/product-name-SKU.html
2
votes
0answers
172 views

Can I create a URL to send in email which will open a specific cart by id?

I'm implementing an abandoned cart email solution. Is it possible in Magento to access a given cart simply by clicking a URL with the cart id somewhere? E.g. something like: https://www.mystore.com/...
2
votes
1answer
246 views

Magento2 unfriendly urls after import products

I've imported products with the build in importer. Since then a lot of products are only reachable via the long url's. http://domain.com/catalog/product/view/id/295/s/product-name/category/4/ But ...
2
votes
0answers
680 views

Magento Search Friendly URLs not working

I changed the config/web/seo/server rewrites to YES. However my urls are still showing /catalog/category/view/s/electric/id/911/
2
votes
0answers
304 views

Remove SID from category filter URLs

When the user filters the products according to the size, say 34,5 the filter button creates a URL like this: (URL 1) http://www.turquoise.me/tango-women-shoes#%21___SID=U&size=29 Which is ...
2
votes
0answers
250 views

Change Price Layered navigation Query string structure

How to change the price layered navigation URL Query string from https://example.com/category.html?price=2%2C10_3%2C10 to https://example.com/category.html?price=12-24 as I want to make Price ...
2
votes
0answers
199 views

URL to my module with adminhtml controller

I added a form to customer page from backend. How do I create the URL for action attribute to a certain function ( public function editAction(){...} )? Function that is founded in app/code/local/...
2
votes
0answers
731 views

Remove trailing slash - Not just using htaccess

I have noted that Magento adds trailing slashes to most urls. https://www.example.com/checkout/cart/ https://www.example.com/customer/account/create/ In my htaccess I have it to strip off the ...
2
votes
2answers
819 views

Remove default store code from URL, only?

mage 2.1.7 "use Store code in URL" set to YES. Have 3 stores, one for our default/original store at "/" with code "france" and one for our south korea and north korea stores. The default store is ...
2
votes
1answer
2k views

How to Magento remove default store view code from url?

We need your help to solve this problem. we have a 2 view store in English and Arabic URLs now www.example.com/en www.example.com/ar we need to remove code view in English version only as default ...
1
vote
1answer
28 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
1
vote
1answer
25 views

Category name on product url still working after “Use Categories Path for Product URLs” set to no

"Use Categories Path for Product URLs" set to no on admin panel But everytime I create a new product, it creates rewrite also for category/product url So both of them work: example.com/category/...
1
vote
0answers
27 views

How can I get all filter combinations and their links for all categories in Magento 2?

I have a problem and I do not know how to solve it. The client wants to get links of all filter combinations for the category, and make a check on index and follow. And if there is a parameter index ...
1
vote
0answers
16 views

Opening product from category url is much slower than loading it from product url

So I have a product named A. If I open A from it's own url https://mymagentowebsite.com/A.html it opens fast because it's cached. However, if I open the product from the category url https://...
1
vote
1answer
158 views

Magento2 - Is it possible to get specific store url in cms block?

I am trying to get store URL or base URL for a specific store in cms block. I have tried {{store _store="1"}} Also, {{config path="web/secure/base_url"}} I wanted to know if this is going to work ...
1
vote
1answer
23 views

Removing (hiding) Magento system URLs

I am pretty sure there has to be a simple way to solve, but I just cannot find it. So, by default, there are 2 types of product rules at my store: mystore.com/catalog/product/view/id/177 mystore.com/...
1
vote
0answers
17 views

How many ways are there to create a controller and what are they?

I have been developing with Magento 1.9 for the last two weeks. I have found several problems to develop each project (probably because my first project with magento had a high level...). I come ...
1
vote
1answer
72 views

how fix invalid url in magento

Invalid base url type Trace: #0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Store.php(620): Mage::exception('Mage_Core', 'Invalid base ur...') #1 C:\xampp\htdocs\magento\app\Mage.php(382): ...
1
vote
1answer
162 views

Products just redirect to search results page

All of my products are now redirecting to catalog search. i.e. /bonfire-firma-3-in-1-stretch-mens-snowboard-jacket-2019.html goes to /catalogsearch/result/?q=bonfire-firma-3-in-1-stretch-mens-...
1
vote
0answers
72 views

Remove Auto-generated URL Rewrites

I've been having this issue with auto-generated URLs. The catalog/* URLs keep auto-generating the red box are the URLs that auto-generate, the green box are the URLs that I want. How do I stop the red ...
1
vote
0answers
21 views

Magento 2 - “url_key” Product Attribute, force as required and unique

Is it good practice to force the "url_key" product attribute to be both "required" and "unique" by default? update eav_attribute set is_required=1,is_unique=1 where attribute_code = "url_key"; As ...
1
vote
0answers
568 views

Magento 2 Rest API get all products with certain attribute_set_id

I need to elaborate de URL that will bring all products with certain attribute_set_id through Magento 2 Rest api, and then change though the api the attribute_set_id of all those items. My problem ...
1
vote
0answers
151 views

Issue with Magento 2 generated sitemap.xml

I'm using Magento's built in sitemap generation tool and have it set to generated nightly. The issue I'm facing with it is that the urls in the sitemap do not match the ones found on the site. To ...
1
vote
3answers
548 views

I change my admin URL to a custom URL and I cannot access my store admin anymore.

I change my admin URL to a custom URL and I cannot access my store admin anymore. How can I revert the change that I made?
1
vote
0answers
78 views

Magento get product link using V1 API

$storeUrl."/index.php/rest/V1/products?searchCriteria[page_size]=200&searchCriteria[currentPage]=1" It returns products list but I want to get each product link. How it is possible?
1
vote
0answers
9 views

Omit inner category URLs from url path

I have a magento 2.1.10 setup running.. Recently made a bulk of change in the categories navigations. The currently structure is somewhat like below All > Pillows > Shop All Pillows > ...
1
vote
1answer
39 views

How to remove a specific href from a top-menu link in Magento

i post before several day this one Hello I am trying to make 3 items on menu to be not click-able and I want to ask how to remove a specific href from a top-menu link in magento? (I don't want to ...