Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
7
votes
2answers
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....
0
votes
2answers
810 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 ...
4
votes
0answers
493 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('...
0
votes
3answers
27 views

Changed Base_Url and Now I am getting 404

I just migrated a Magento2 site from a cloud server to my localhost to do some developer work on. I have everything I need installed and ready to go. I am just trying to redirect the Base-URls. I ...
0
votes
2answers
2k views

How to Get Unique Product URL Key Magento2? [closed]

I making a commerce product with the help of Magento and I am new to this, my question is while adding a product from Magento admin, it stores the search engine optimization URL key default as the ...
1
vote
2answers
25 views

Product image by ftp url

I need to pass an url of an ftp to be the product image by the magento api, can I do this? Something like { "attribute_code": "image", "value": &...
0
votes
0answers
8 views

Re-direct Category Menu item to different URL

I want to redirect my Menu sub item to a different URL how can I do that? Like Blog Menu Item to Dropbox.com
0
votes
1answer
18 views

Multiple URLs getting created for single product

I am an SEO executive and pretty new to Magento. I have got a project in which there are multiple URLs for a single product and all URLs have been indexed on Google. Here is an example of URL ...
0
votes
1answer
18 views

Remove .html from category in product URL?

For some reason, I am getting .html in my product URL, like so: https://example.com/mycategory.html/myproduct.html. I want to remove .html from mycategory when I am on a product page. Is there a ...
2
votes
2answers
809 views

Magento 2: How to get secure category URL programmatically?

I have a custom category indexer which grabs Magento categories and index them to a search service. Within each category I need to index it's URL which I do by code $url = $category->getUrl(); ...
0
votes
1answer
863 views

How can i rewrite my category url for redirect new site

How can i configure category url rewrite management. When user click category it leads to another site.
1
vote
2answers
762 views

Add to cart url returns invalid url

My add to cart url returns this. When i click it the products doesn't get added because it's invalid. This happens in the homepage. http://localhost/mage/index.php/checkout/cart/add/uenc/...
3
votes
1answer
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'])...
0
votes
0answers
5 views

Magento2: Could not save product “53430” with position 0 to category 1593

Every time during try update category I get issue: Could not save product "53430" with position 0 to category 1593 When edit product and try save I see: The value specified in the URL Key ...
1
vote
1answer
17 views

url magento 2 to get manufacturer value on all website

why url like this do not work when we try to access to all product of a specific attribute value. let's take manufacturer as an example::https://website.com//?manufacturer=1437
0
votes
0answers
11 views

URL Not friendly Magento 2

Name product: Box đựng HDD 2.5 di động WD USB 3.0 . but url auto of magento 2: /box-d-ng-hdd-2-5-di-d-ng-wd-usb-3-0.html . i want /box-dung-hdd-2-5-di-dong-wd-usb-3-0.html This is lang vietnamese ...
4
votes
3answers
9k views

How To Set Product URL Key OR Redirect URL in PHP

So I am creating a Magento product when I call this if statement and it returns false, that all works... I just want to create the URL or create a URL redirect for the product in the same statement ...
1
vote
2answers
22 views

How can I get product image from REST API as HTTPS

I use V1/getproductimage/<sku> and get product's image url from API. It returns [ { "product_image_url": "http://<host>/pub/media/catalog/product/cache/...
1
vote
2answers
3k views

Magento 2 get admin url with key and parameters

I don't understand why but in many topics I see that to get and admin route url with secure key and parameter I only need to use : $this->urlBuilder->getUrl('adminhtml/myroutename/mycontroller/...
11
votes
7answers
41k views

Magento2 - Get category URL by ID

I'm trying to get the URL key of any given category with the ID. I have this; $categoryId = 3; $_objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $object_manager = $_objectManager-...
1
vote
0answers
18 views

Magento 1.9 Localized product url keys

In Magento 1.9 we want to use localized product URL keys for different storeviews. The url key is a global variable and can't be changed by storeview. Example: English: www.example.com/en/addidas-...
1
vote
1answer
25 views

How to translate a url automatically in Magento 2 community?

I have got two websites (one in french, the other one in spanish). I have set up two websites and not view stores because selling prices are different. The main website is the french one. I have ...
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 ...
0
votes
0answers
19 views

Redirect .html to none html on URL

I tried to remove .html from my categories from admin panel and it works. now I have example.com/test , but example.com/test.html is 404 now. how can I redirect all .html urls to non html one? should ...
3
votes
0answers
23 views

Remove Parameter From Product url Magento 2

I am trying to remove parameter(#857=) from the product url: https://tpm2.redsignal.net/reina-modal-trv-steel-radiator-towel-rail-valve-anthracite.html#857= These parameter are of configuration ...
0
votes
1answer
27 views

Generate Admin URL from frontend Magento 2

I have to generate secure Admin URL in the frontend, for example in Magento 1.9 i can achieve it like this: $adminUrl = Mage::getUrl('adminhtml/sales_order/view', array( 'order_id' => $order->...
0
votes
2answers
936 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
1
vote
0answers
29 views

How to call function in my controller in browser url which shows 'hello world' in magento 2.3.5

I am here trying to make a hello world message when trying to access my controller function using browser url demomagento.com/app/code/Icosmoz/Unicenta/Controller/Adminhtml/Home/index.php This is the ...
0
votes
0answers
13 views

URL rewrites duplicate problem

I get an error like: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'hracky/elektricke/bburago-range-rover-sport-black-d5848030-evoqu' for key '...
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 ...
0
votes
0answers
21 views

static blocks are not displaying in frontend

I moved the main server to localhost with subdomain , all the pages are working but static blocks are not displaying in frontend, where i have to change to display the static blocks in frontend
1
vote
0answers
21 views

create dynamic pages

I have a website with about 200 accessories for a certain type some cars, the accessories are set up as normal products within Magento. However, the cars are stored in a new table within our Magento 2 ...
0
votes
0answers
8 views

Pass URL Parameter to Order

In my Magento 2 store, I want to be able to pass a custom URL parameter source to my order, so that when the order is complete, we know what value (if any) was in the query string for the source key. ...
3
votes
2answers
946 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 ...
0
votes
0answers
5 views

Modify “added to cart” notification to include HTML link? - coming from 3rd party extension via PHP (controller), not standard mage notification

I have an extension installed that add's a "quote" cart to my Magento 2.3.4 site. It looks similar to how the default cart works, but it allows customers to add products to a quote-cart and submit ...
1
vote
1answer
1k views

How to remove cookie data from static content request?

I have created a separate domain to serve static content. Also modified URL values in System->Configuration->General->Web. When I inspect any static content request with firebug in firefox browser, I ...
0
votes
1answer
1k views

how to find Payment Response URL, in Magento account?

We are configuring, a payment gateway from Worldpay to Magento our website. it says, we need to copy the value of Payment Response URL from Magento to Worldpay, Payment Response URL. How can i find ...
2
votes
3answers
3k views

Magento2 : Get Product Url for Store

I'm writing a custom indexer and I need to retrieve the product URL for different stores. $product->setStoreId(2)->getProductUrl(); still returns the URL with the admin store (backoffice) in ...
0
votes
0answers
9 views

Domain rewrite for all the product URL which recently migrated from another platform. The main domain should be same

Am running a store in Magento2 which I recently migrated from another platform. So all my existing URL of products changed but keeping the main domain as same. www.domain.com/products/item_name ...
0
votes
1answer
1k views

Admin Login redirecting after login

I have cloned my 1.9.1 install to a subdomain successfully. However an odd behavior is occurring. When I attempt to login to the admin, the page reloads, the login fields are blank, and I noticed ...
0
votes
3answers
952 views

How to change my url from www.xxx.com/Magento to www.xxx.com

I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/ I am set up on Windows Server and using Xampp 3.2.2 ...
0
votes
2answers
2k views

Magento 2 After updating the admin URL getting 404 Not found page

I have changed the admin URL using the below command line: php bin/magento setup:config:set --backend-frontname="admin_path" I have followed the below answer for change the admin URL: How to change ...
0
votes
0answers
17 views

How to remove Specific Category name from URL when product is load

Can it possible to Remove Specific Category from URL when Product is Load. For Example, if Category Name Like this Product Subject Presenters 1) when we click in Product Category Load all ...
2
votes
1answer
986 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 ...
20
votes
5answers
25k views

How to remove SID (session ID) from URL in Magento 2

How to remove the session ID from the URL in Magento 2 (frontend). This is the SID query parameter in the URL. For example: https://example.com/contact/?SID=sfl317buq8ru4uf4a... Removed starting ...
0
votes
0answers
20 views

When uploading a picture to a product from the admin It doesn't show up on the front end until I run catalog:images:resize

Is there something else I can do to show the picture on the frontend? Without the catalog:images:resize command?? Thanks!
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 ...
2
votes
1answer
2k views

Get Group Product Path(URL) from Single Product ID

Given that I already have the single product id, was it possible to get it's grouped product url that has the certain single product id that I got? For example, I got a single product id of 11 ...
0
votes
0answers
10 views

how to show complete product url key in magento 2

Products in subcategory URL Category 1->Sub Category 1-> Product if I navigate the product from (root->sub) sub-category-1 the URL of the product is /category-1/sub-category-1/product-urlkey.html ...
2
votes
3answers
1k 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
2 3 4 5
19