Skip to main content

Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Multiple Store URL

I've spent more than a week to solve the problem with URL's in my Multiple Stores in Magento Community 2.3.2, but I got nothing. What I need: URL structure: example.com/store_name/store_viewname ...
5 votes
0 answers
265 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
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

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
76 views

After magento version update from 2.4.3 to 2.4.7 all category url returns 404 error

A few days ago we updated our project magento version from 2.4.3 to 2.4.7. All works quite well, with the exception of the category url, all category url returns 404 error. The catalog/category/view/...
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
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
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 ...
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
0 answers
11 views

Importing an existing product into a new category and the URL is the default

I have 2 different stores: German and French. I have the same SKU "A" on both stores, with the German and French URLs. I created a new category on the French store, and when I import the ...
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'])...
1 vote
1 answer
1k views

Magento 2.3.2 - Switch Website (store) without going to base URL

I'm using the following code to switch websites. app/design/frontend/[Vendor]/{Child_theme}/Magento_Store/templates/switch/languages.phtml <?php /** @var \Magento\Store\Block\Switcher $block */ ...
0 votes
1 answer
85 views

Category links loading two times

When we click on any category or subcategory link , it open two urls : first, it will load below url https://www.website.com/earrings/earlobes Next, it will load below url : https://www.website.com/...
2 votes
4 answers
3k 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
1 answer
2k 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
4 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 ...
3 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 ...
3 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
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 ...
3 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 ...
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 ...
7 votes
2 answers
7k views

Is there a way to pass a coupon code as a URL parameter?

I would like to create URLs which activate a specific coupon. It could be as simple as passing the coupon code as a URL parameter. When a coupon is passed, I'd like it to automatically be populated ...
0 votes
1 answer
54 views

How to change or overwrite order_id number in Magento store URL?

When viewing orders as customer order_id is visible in URL like this: /sales/order/view/order_id/20/ Is it possible to achieve that orders would be accessible by increment_id value instead? Otherwise ...
0 votes
2 answers
152 views

How to change base url from https://www.example.sg/ from https://www.example.sg/aaa?

How to change base url from https://www.example.sg/ from https://www.example.sg/aaa? I would like to permanently append "aaa" next to https://www.example.sg/. Usually, when I click, for example, "...
0 votes
1 answer
42 views

How to get absolute path from category in megamenu?

i'm using the MageDelight Megamenu extension for a website with different stores in different countries, ex: mystore.com/en_uk/ mystore.com/en_us/ While creating the menu in admin i put the ...
2 votes
3 answers
5k views

Remove last trailing slash from url

I am using this code to get the URL of the current page I am on: <?php $currentUrl = Mage::helper('core/url')->getCurrentUrl(); ?> Problem is, at the end of the url, there is a slash. How ...
0 votes
2 answers
149 views

Magento 2.4.6 admin category URL redirect admin dashboard

Admin category URL link redirects to admin dashboard issue how to fix this issue Current URL: Category https://test.cm/mv2/admin/catalog/category/edit/id/12/key/...
4 votes
1 answer
2k views

Configurable product with different URLS for simple

If I sell a t-shirt which has 2 colours, normally I would have 1 URL for the configurable product as the 2 simple products would be set to have a visibility of hidden. However I would quite like to ...
0 votes
1 answer
92 views

Found stange url of my Magento site on Google search console

I am running a Magento 2 site, and try analysis the search or traffic of it with Google Search Console. Recently, I found some strange url via Left-top menu "Performance" then middle sub-...
1 vote
5 answers
2k 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: &...
0 votes
1 answer
397 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 I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
0 votes
1 answer
793 views

Magento 2.2 Ajax not working on second time in category page

My site was working fine, suddenly the ajax on category pages is not working on second time. On first time it works fine, whether it is pagination or layered navigation but on second time it doesn't ...
1 vote
1 answer
80 views

Magento 2 Pagination Urls changing from ?p= to &p=

For some strange reason, despite not running any recent updates, our pagination links have broken on all categories. So they are occuring as &p=2 rather than ?p=2. The link still works if you ...
0 votes
1 answer
71 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 ...
0 votes
1 answer
444 views

Magento 2 - 404 error after changing "Custom Admin URL" from Admin panel

I changed the base admin url using the admin panel and now I cannot access the admin panel anymore. I dont have access to the PHP file, I'm an online user, is there a way to find the new admin login ...
2 votes
3 answers
2k views

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

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
166 views

Duplicate content issue with home page and country code version - Magento 2

Problem is, that SEO tools tell us, we have duplicate content with Home Page URL and Home Page URL with country code. www.XYZ.com www.XYZ.com/de/ What is the easiest and most pragmatic solution to ...
2 votes
1 answer
50 views

Add a link to the SKU of the product in the order details in the backend

In the backend, click on sales -> orders -> view once, and under the information tab, there is a "Items Ordered" option. Add a product link to the SKU of the product below, which links ...
0 votes
0 answers
45 views

'/l/' in a URL of unknown origin

I have a strange issue with my project. After analyzing the log files, I noticed that in one of the categories, when using filters, a weird URL appears. The typical URL looks like this: /data.html?...
0 votes
2 answers
57 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 ...
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 ...
0 votes
2 answers
660 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
6k 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 ...
0 votes
1 answer
161 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
1 answer
345 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 ...
0 votes
2 answers
721 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 ...
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
35 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?

1
2 3 4 5
20