Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Magento 1.9 - What is the best Practice to Display Top Selling products list?

I have to display best selling products list, just confused what is the best practice. Create Module & CMS Page Getting best selling values from database using products id display product ...
2
votes
1answer
22 views

Magento 2 SKU and URL Key is not generating unique by default

When I create multiple product with same SKU and same URL Key it is creating, as I know Magento do not allow this. I googled alot but didn't find any configuration for this, Please guide me what is ...
0
votes
1answer
33 views

How to Change URL of Magento Site After Modifying Apache DocumentRoot?

My question is similar to How to do redirect the URL of site but I want to do the opposite. And there is a further challenge or two I cannot understand yet. Our setup is a Magento 2.3.3 store running ...
4
votes
3answers
2k views

Add to cart redirect

How can redirect to a CMS page when the "add to cart button" (on a product view page) is clicked? I have already disabled the redirect to the cart page after the "add to cart" button is clicked. Now ...
1
vote
1answer
11 views

Store switcher url is not redirecting to the store

I'm working on store switcher in magento 2.3.3 I get the url but url is not redirecting to the particular store again get back to the same store http://test.de/test_de/stores/store/switch/?SID=...
0
votes
1answer
758 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.
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'])...
2
votes
0answers
28 views

how to customize the Magento 2, Core API URL

I want to customize the magento 2 core base API URL. For example, If my magento base url is http://local.m233ee.com/rest/v1/ . As per my project requirement, i have to change the base URL to ...
1
vote
2answers
46 views

Magento 2.3: Forward to another URL without redirecting

I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part. So, ...
8
votes
2answers
34k views

Why do we have to use “store” for links in CMS like <a href=“{{store url='home'}}”>home</a>

To insert links in the CMS, we use this code: <a href="{{store url='home'}}">home</a> What is this "store" keyword doing and why is it called "store"? And are there any other keywords ...
7
votes
2answers
4k 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 ...
1
vote
2answers
654 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/...
0
votes
1answer
45 views

Difference in response from magento swagger and postman Magento 2

I have custom API in which I am retrieving customer balance as: use Magento\CustomerBalance\Model\BalanceFactory; ........................ ........................ $model = $this->balanceFactory-&...
2
votes
1answer
2k views

Fix Category Url Filter in Magento 2 Layered Navigation

By default in Magento 2, the category links look like this They lead to ?catId=xxx, instead of the better SEO friendly links, like the product name. I found a solution for this issue, but it's for ...
0
votes
0answers
20 views

Magento 2.1 - Add prefix to category url

How to add a prefix for Magento 2.1 URL and show child without a parent? Example: Category level1: www.example.com/categories/fashion.html Example: Category level2: www.example.com/categories/men....
1
vote
2answers
69 views

Magento 2 - mage/url is not working in module. Uncaught ReferenceError: url is not defined

I am running the Magento 2 on the localhost server. http://127.0.0.1/magento3 here I've built a custom module for payment gateway. In custom JS I want to use the mage/url. I need to use ajax for the ...
1
vote
3answers
26 views

change product URL programatically

I need to change all my product URLs and I would like to use a code snippet to use it. All I need is a simple code which is Magento 2 compatible and will change the URL for one product then saves it. ...
1
vote
1answer
703 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
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....
0
votes
2answers
833 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/...
0
votes
1answer
28 views

Why do I need the SID in my URL?

Since I installed my store I see the SID code in my URLs but I don't know why it's there, I found an option in my admin panel to disable it. Could you explain to me why do I need it?
1
vote
0answers
514 views

Why SID is not coming in URL?

I am working on a multi-store configuration. Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront is set to "Yes" Store > Configuration > General > Web > Url ...
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
1answer
40 views

URL Query parameters are being lost

I am having a strange issue with my product filter (layered navigation) not working, I have narrowed this down to the URL paramaters being lost because of a 301 redirect. If I go to the URL... http://...
0
votes
1answer
14 views

Why my admin route is showing 404 and URLs include server.php?

I already checked everything, my remote server is working properly by my local showed up this issue, as you can see in this image below. I don't know if it's related to my local environment using ...
0
votes
2answers
26 views

URL is appending if I click more than once

We have created megamenu for our site. But the issue we are facing is that the url is appending if click more than once instead of showing corresponding page. How to resolve this issue? Below is the ...
3
votes
2answers
860 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
4answers
2k views

How to remove trailing slash from Magento 2 url

I have installed ssl in my Magento 2 store and configured base url to the https version. But when accessing http version, Magento redirecting url with appending trailing slash. For example: My ...
27
votes
3answers
54k views

Correct way to change the magento 1.9 admin url

Correct way to change the Magento 1.9 admin url anyone can provide me the correct way. I see a lot of different suggestion online.
0
votes
0answers
16 views

Duplicate URLs ending with #!

Does anyone know why a site can contain duplicate URLs ending with hashtags & exclamation mark e.g. https://www.vaibhavjewellers.com/gold-jewellery/kids/maangtikka.html#! https://www....
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 ...
1
vote
0answers
20 views

Product url_keys nulled after some time

Setup: Magento 2.2.x, OpenSouce (Magento Community Edition) Products were imported from Magento 1, url_path attributes were cleared all url_key values are unique (both products & categories) ...
0
votes
1answer
28 views

Magenot 1.9.x : The URL “http://magedk.local/” is not accessible

I can't install magento 1 because I have error: "The URL "http://magedk.local/" is not accessible." "Unable to read response, or response is empty" Magento installing on docker.
0
votes
1answer
968 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 ...
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 ...
1
vote
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
28 views

Magento 2 Camel case URLs

I have a client that I'm migrating a client from Magento 1.9 to 2.3 where they've used camel case in the URLs. Obviously M2 doesn't support came case and enforces lower case. Any way to support camel ...
0
votes
0answers
16 views

URL rewrite programatically

I need to rewrite all my category urls. they are more than 600X so it is not possible to set them one by one. how can i set them automatically?
4
votes
1answer
53 views

Product to category redirect

Is there a way to link/redirect a product page to a category? Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
2answers
1k 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
19 views

Website URL's issue

An issue has appeared suddenly with URL's on my site. I currently have the following configuration. AU Store (https://example.com.au/au/) US Store (https://example.com.au/us/) However, if a user ...
2
votes
2answers
59 views

Magento2 : How To Get Parameters from URL In Controller

http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<...
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 ...
1
vote
3answers
643 views

Cant access images in /pub/media/customer

I have added custom attribute for profile image upload. Now when i access customer image on front end it shows 404 error and donot access images in this folder /pub/media/customer .
2
votes
1answer
935 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 ...
1
vote
3answers
738 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?
26
votes
13answers
67k views

Remove /index.php from the Magento URL gives 404 error

I am using Magento ver. 1.7.0.2. Here it is the link to my website: http://dev.blokeundees.com.au/ I have to remove the /index.php folder from URLs so I edited the .htaccess file and backend too (...
0
votes
0answers
17 views

Magento 2 URL - Category Hierarchy

Currently working on a site with several categories and thousands of products. We want to structure the categories into parent/sub or parent/sub/sub if necessary. I've looked at url rewrites inside ...
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 ...
0
votes
1answer
2k views

Check page url is category page or cms

I have an page url of magento site. my question is : how can i check the page url is category page or cms page or other page? for example: page URL is : http://example.com/craft.html(category page)...