Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

how to add product to cart by url?

I need a add to cart URL for add the product to cart by open this URL in any browser. I get the add to cart URL by this: Mage::helper('checkout/cart')->getAddUrl($simple_product) output of above ...
0 votes
2 answers
25 views

Problem with SEO - No redirect

Currently my website works well and my products are having the following URLs https://baseurl/catalog/product/view/id/19008 However, I bulk changed with the help of a module to a more set friendly URL ...
0 votes
2 answers
2k 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
1 answer
3k views

Magento 2 - URLs trailing slash redirection

I configured my Magento 2 store to ends with trailing slash. This work great. But when I browse the same page without trailing slash, it redirects to a 404 error page, and not to the trailing slash ...
0 votes
1 answer
1k 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
4 answers
1k views

CMS Page Save - Url Key - "The value specified in the URL Key field would generate a URL that already exists"

I've upgraded to Magento 2.3.6 from 2.3.4 and am encountering this error anytime I try to update and save a CMS Page. It's limited just to CMS pages. Products and Categories are fine. The error is: &...
3 votes
1 answer
2k 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
2 answers
1k 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
3 answers
2k 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 ...
0 votes
2 answers
80 views

Magento 2: How to pass the parameters to another URL?

I'm new in magento 2, my question is how to send parameters with results responses to another url whenever i click "Place Order" and before proceeding to success page. Using event and ...
0 votes
1 answer
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 ...
3 votes
3 answers
5k views

Magento 2 Duplicate Product URLs Problem

When creating products in Magento 1 the url was created from the product name, and if there were duplicate product names M1 would add a numerical suffix to the end of the URL. Since it seems this is ...
2 votes
4 answers
2k 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?
2 votes
1 answer
1k 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-...
0 votes
1 answer
36 views

Only show current category in category path?

Magento 2.4 A category looks like this: https://www.example.com/cat1/cat/cat3.html I want it to look like this: https://www.example.com/cat3.html So what I want is only the current category, not the ...
0 votes
4 answers
3k 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
1 answer
62 views

Add Custom Link to Sales Order View Admin Panel

How can I add a custom link to 'sales/order/view/order_id/123456' adding an slash after the order_id with route name "download" so it becomes sales/order/view/order_id/6710/download My ...
2 votes
2 answers
2k 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?...
1 vote
1 answer
1k views

Magento 2 - Use secure url for static files field into database?

I'm using Magento 2, and I'm trying to find the field of "use secure URL for static files" (or similar label). I can find web/unsecure/base_url into mgxo_core_config_data , but not that one, I need ...
2 votes
1 answer
2k 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
2 answers
717 views

How to set up magento landing page?

Currently I have home page www.example.com. But now, I want to set landing page before the home page and the url of the landing page will become www.example.com and the url of the home page will ...
2 votes
1 answer
2k 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
1 answer
211 views

Remove trailing slashes from store URL's - Magento 2.4

We set the "Add Store Code to URLs" option to Yes, so now our store URL's looks like: https://www.example.com/en/ https://www.example.com/de/ https://www.example.com/fr/ And by default ...
2 votes
3 answers
4k 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
0 answers
6 views

URL Rewrites / Cloned Categories

I have just switched a root category over for our store and the URL rewrites have not applied. Any idea how I can resolve this? Cheers
1 vote
1 answer
2k 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
1 answer
2k 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 ...
1 vote
1 answer
2k views

Magento Admin panel will not fully load Edit Categories due to AJAX call to a non secure endpoint

We have a Magento site that was copied over from an existing Magento site we have, so all products, setting, etc are simply copied to a new domain. This was done months ago but I am just now trying ...
0 votes
1 answer
23 views

how to fix to show main domain when input subdomain in Magento?

I cloned Magento project from main domain to subdomain in cPanel. I fixed secure and unsecure URL in database. But if I input subdomain URL, it show main domain URL. How can I fix it?
8 votes
2 answers
3k 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 ...
1 vote
0 answers
70 views

when submitting the form from the formbuilder the hash(#) value get removed from the url

I'm trying to submit the request through the GET request by sending the fields as the query parameters, example.com/web/connector/#/home?(other query parameters) when the request is submitted the URL ...
0 votes
2 answers
1k 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.
68 votes
13 answers
173k views

How to get Magento 2 base URL?

In Magento 1 Mage::getBaseUrl();, but in Magento 2 I have to pass responsible class object type in constructor. I don’t have the idea which class I have to pass?
0 votes
0 answers
12 views

Eliminate duplicate URLs from getting indexed but not from the website

So I have most of my products with more than one URL website.com/product website.com/category/product website.com/category/subcategory/product website.com/category/subcategory2/product I saw that ...
0 votes
0 answers
94 views

Magento 2 - Change Base URL Solved If Links Won't Change

Just coming back round to coding in Magento again and found an odd issue where the base URL wouldn't update on the links within the web page / navigation. With a base URL issue that seemed to last for ...
4 votes
0 answers
794 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
0 answers
20 views

Delete target path programmatically from sitemap.xml file

Hello there added custom URL Rewrites for basically every path. For every path the custom URL Rewrite works fine, except for this one: In sitemap.xml I see the both paths (request path and target path)...
0 votes
2 answers
34 views

in my url the index.php path appears

my current path ` http://magento2/index.php/router/controller/action preface this address (index.php) is added to the line after the redirect, but there is no error I didn't do anything to make it ...
0 votes
1 answer
128 views

URL Rewrite not working only for one specific path

I want to ask you for help regarding URL Rewrites. As you can see here I've added the URL rewrite for this path but in the sitemap.xml file there is still not updated it's an old (target path) so the ...
0 votes
0 answers
30 views

magento 2 category url with timestamp

how to remove the timestamp in magento 2 category page url when clicking next page When I enter a category page and click page 2, page 3, and so on, my category URL is like this: mysite.com/categoryA....
0 votes
1 answer
34 views

Which controller the export hits

I'm trying to understand where the controller of export stock sources is being hitted My url is the following /admin/export/export/key/fjkzegjzehgjze/entity/stock_sources/file_format/csv The code ...
27 votes
5 answers
54k views

Get Current URL from a PHTML - Magento 2

I'm struggling trying to show the current URL from a PHTML in Magento 2. Any suggestion?
1 vote
2 answers
1k views

Magento 2 How to change media base url programatically

Does anyone know how we can change magento 2 media base url programatically ?
0 votes
1 answer
115 views

Magento 2 In the UI form, Edit urlInput is not working properly

I've created a UI form with a URLInput field. For creating new entries, it works fine. However, the 'open in new tab' setting is always checked in the edit form. The value has been binded correctly. ...
0 votes
1 answer
29 views

How to include category url keys in product URLs

I am preparing to get Magento certified, doing some test questions I have found this: A client has asked you to include category url keys in product URLs. How is this done? A. Create an observer for ...
4 votes
0 answers
154 views

Magento 2: Multistore view different language url key language switch page is redirect to home page

Magento 2.4.5 Facing issue with multistore view language change CMS page is redirecting to homepage. We have two store view English and Spanish. Spanish store view CMS page name is add with Spanish ...
0 votes
1 answer
1k views

How to get product Frontend URL in Admin in Magento 1.9?

I am using below code to get Product frontend URL in admin but it's throwing 404 error. $product = Mage::getModel('catalog/product')->load($productId); $product->getProductUrl() Can anyone ...
1 vote
2 answers
6k 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/...
0 votes
3 answers
1k views

how to get rest URL in Magento2

I need to get a link of this kindhttp://localhost/Magento2/rest I have a code by which I get base_url: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $storeManager = $...
0 votes
1 answer
105 views

what is the correct way to add ajax url?

My controller file is Vendor/MultipleCustomerAccount/Controller/Account/LogoutPost.php what should be the ajax url?

1
2 3 4 5
20