Questions tagged [url]

Denotes question about URL issues and custom URLs.

1
vote
2answers
101 views

What does this pattern match when filtering strings for URLs

What exactly is this line for preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string)) in the following method in \vendor\magento\framework\Filter\TranslitUrl.php: public function filter($string)...
0
votes
0answers
104 views

Magento 2 product url key saving issue

I am trying to save product url key.When i open product admin product url key is empty for some products so i am trying to place url and saving product product is saving but url key field not changing ...
1
vote
0answers
20 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 ...
0
votes
0answers
20 views

Which url is better to use

We have a : Checkout Page Select address Order summary three different pages. Which way of representing the urls is better.But using a slash is sub directory. Can we have the url like this : ...
0
votes
1answer
53 views

Get second last url in Magento 1.9

How can we get the second last url in Magento 1.9? I currently use this: <?php echo Mage::getSingleton('core/session')->getLastUrl();?> To get the last URL. But I want to get the second ...
1
vote
2answers
182 views

Magento 2: Category URL for frontend

I have created a root category with name colors in Magento 2. I am trying to access this category by URL http://domain.com/category/colors.html in front end. But its not working for me. What will the ...
0
votes
0answers
44 views

Need to remove Currency name(ie \gdp or \usd) from url in magento

I am new to Magento 1.9 I m trying to remove currency name from url and at the same time setting canonical url
0
votes
0answers
31 views

Is it possible to generate unique URLs when using Magento\Catalog\Model\Product?

I am using Magento\Catalog\Model\Product to save products in a loop. When i have multiple products with the same name $product->setName($name) i get the following error: Fatal error: Uncaught ...
1
vote
1answer
58 views

How to get current page url in static blocks

I want to get my current page URL in one of my static blocks How do I get that?
0
votes
1answer
103 views

Google still crawls url while i disallow from robots

I will go straight to the point. Recently I did several fixes in my robots.txt file, and I've added several disallows like these: Disallow: /review/ Disallow: /catalog/product/view/ the problem is ...
0
votes
1answer
28 views

Magento 2 : Update url to domain

I'm using an Instance of Ubuntu 16.04 lts on Google to run a store, but I'd like to point to my domain. Wich line on Apache2 should I update?
0
votes
1answer
19 views

Magento Multisite links go to wrong domain

I have created a new website within my Magento (1.9.3.10) I've created a home page and got the menu visible. When you click on a Menu item, it links to my other website domain, showing a 404. I have ...
0
votes
1answer
36 views

Magento 1.9 - Layered Navigation Links Ending with ?cat= or ?brand=

I am working on URL issues for a customer of mine and they have subcategory links ending in ?cat= and ?brand=. If I'm not mistaken, this is bad for SEO and not ideal for customer user experience. I ...
0
votes
0answers
41 views

Force display currency with URL (Magento 1)

We are having issues with our international Google shopping campaigns where we our feeds are serving the prices converted to the currency for that country, ie Euros, but Google are rejecting the data ...
0
votes
1answer
16 views

Should I Index every URL to google?

I'm running a shoe store, so I have lots of attributes creating a lot of different indexable URLS's (shoe sizes, colours etc) - Should I submit all of these url's? Will it bring an SEO benefit or not
1
vote
0answers
543 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 ...
0
votes
2answers
39 views

Two Url's for one product

i have one product with two different url's https://dutchmanaxles.com/products/axle-housing-rearend-hardware/rcv-934-cv-joint-lightened.html and https://dutchmanaxles.com/rcv-934-cv-joint-lightened....
0
votes
1answer
34 views

How to add Product id after cart url on cart page in Magento 1.9

I want to add some product id after cart url on cart page the product that is added in the cart. Because i want to target that products by using omnisend extension that target by part of url. To show ...
0
votes
0answers
172 views

Remove ?___store &___from_store=default from the code url of magento 2 in multistore

'Add Shop Code to URLs' to Yes in System -> Configuration -> Web -> URL options. But show ?___store &___from_store=default. I used magento 2.25. Thanks for help.
0
votes
1answer
164 views

How to get url parameter in model

How to get url parameter : at this file app/code/Vendor/Module/Model/ResourceModel/Module/Grid/Collection.php My Url is like this http://192.168.2.215/mtheme/admin/vendor_module/index/details/id/1/ ...
1
vote
1answer
43 views

Image not responsive on home page.

I've added an image to my home page and when I preview the home page from CMS pages in the admin the image is responsive. When I click on my logo the page is then fully responsive all except the ...
0
votes
1answer
24 views

Magento 1.9: How to delete a wrong URL pointing to a product review on a different website (same server)?

I am running two independent websites on a Magento 1.9.3.9 installation. Today I discovered when searching for a product which is sold in one Magento website, that the Google search result returns a ...
0
votes
1answer
20 views

Core URL re-write table - delete URL entries for deleted products

We are on Magento Version 1.9.3.7 and have been using Magento for a few years now. When we moved our site to the live site from the development site, we deleted all the development products but looks ...
0
votes
1answer
75 views

Add new string to product url

I would like to ask if it's possible to make magento ignore a string added to a product url. For example, I have a product url: http://mywebsite.lc/product-name Is it possible that when entering: ...
0
votes
0answers
95 views

How to change contact page url in Magento 2

When we entering contact form in footer from any page it redirect only - /contact/index/ Any options such that we can submit form in footer any page without redirect to another page
0
votes
0answers
179 views

How to get or append some extra query param to url

I have added some links in top. i want get query param from url and append in to every links in top dynamically like my links are = test1, test2, test3 My mail url is = https://apcd.com When ...
0
votes
0answers
19 views

Get current category or current product and then get its url in the other store store view

Let's say we have two store views: en and de. And following example urls example.com/en/car/van example.com/de/auto/lieferwagen When we are at a category or product page how do we get the url of the ...
1
vote
0answers
132 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 ...
0
votes
1answer
323 views

Magento 2: How to check if checkout payment page

I'm looking on how to check if i'm standing at checkout payment page, which have url "fudu.magento.net/checkout/#payment" by php or by js. I was trying to use to get url, but it always return ...
0
votes
1answer
248 views

Put a trailing slash at the end of CMS URL without redirection

I would to put a trailing slash at the end of my CMS URL, but without make redirection when it's possible : I want to put this slash when the URL is build. In the BO, in CMS page, we can define url ...
1
vote
3answers
454 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?
0
votes
0answers
50 views

magento 2 product url allow slah

how can i allow slash in product seo url my slash gets changed to -. I have product abc i want url of same to be : example.com/myproducts/typeb/abc i am trying to put product url as myproducts/typeb/...
0
votes
0answers
133 views

Url uppercase converted to lowercase letter Magento 2

I installed a template and i noticed that when i use uppercase it's converted to lower case. The module name is sm mega menu and the template name is Shop4u so where to search and what to change to ...
1
vote
1answer
344 views

Magento 2 pass multiple parameters in the admin grid action url

In Magento 2.2.5, I am sending the id in the url now, But, I want send multiple parameters in the admin grid action url. I created admin grid using layout Blocks. Not used ui component. How to ...
1
vote
1answer
205 views

magento 2.2.5 turn back to home when i change store view

i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa, I'm redirected to the home page. Someone can help me? ...
1
vote
1answer
1k views

magento 2 redirect url with parameters from controller

I am trying to redirect to a different controller from one controller . I also want to set an Url parameter along with the redirect. But this is throwing me an error Uncaught Error: Call to ...
0
votes
2answers
40 views

Url of last order of current user

I need to implement a link which redirects to the url of the last order of the current user How do I do that ? I have a code that load the last order, but I need to get the URL $orders = $...
1
vote
0answers
75 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?
0
votes
1answer
35 views

Full base url appended after base url when reaching page

For a demo environment, I had to upload my Magento project to a server, without a domain name. My Magento base URL is http://62.221.209.128/plesk-site-preview/rodrigootazu.com/62.221.209.128/, but as ...
2
votes
0answers
106 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
218 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
268 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 ...
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 > ...
3
votes
2answers
114 views

Max URL Levels in Controller Magento 2

I have custom controller outputting JSON format which works well for the below URL level; ** Works base url/module/folder/action //equates to Vendor\Module\Controller\Folder\Index.php However I ...
2
votes
2answers
94 views

How to restrict direct access `/pub` with url?

How to restrict direct access /pub with the project URL (www.domain.com/pub) in Magento 2.
2
votes
1answer
404 views

Magento 2 : How to get current product programmatically in a helper?

Could someone advise what's the best way to get the current product in a custom helper? Basically if I am a product page I need to get it's sku
1
vote
1answer
38 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 ...
2
votes
1answer
23 views

how to stop creating multiple url of product

Product URL created for all stores even I have disable the stores 1,2,3,4. I just need store 2. but while uploading the product the nos of product URL created for all stores(in url_rewrite table). If ...
0
votes
0answers
90 views

Magento 2 admin is not working?

I am using magento 2.2.2 Frontend is working fine but admin is not working. I have tried to deploy, upgrade, cache, compile etc but the admin is not working. The admin url is strange: http://...
0
votes
0answers
33 views

rewrite URL in module config

I want to replace some of Magento's default Cart Controllers (which then simply inherit from them). In Magento 1.x I was then able to rewrite any URLs generated by Magento to my custom Controllers, by ...