Questions tagged [url]

Denotes question about URL issues and custom URLs.

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

Find backoffice controller

I have a javascript call to this url : https://mysite/admin/admin/export/export/key/b7c4bdb5a1b9f5147f498741adc99/entity/catalog_product/file_format/csv From this url how can I find where is located ...
0
votes
0answers
10 views

Regarding - Magento OAUTH 1.0

I am trying to create an integration between zoho desk with magento. And I have used oauth for my all requests. And I have used the following urls for authentication Authorize url : https://mystore/...
0
votes
0answers
9 views

External Links in Magento 2 Admin Panel

I have noticed there are a lot of 3rd party links to external websites within the Magento 2 Admin panel, links to New Relic, Dot Digital, YotPo, like: Create Account, Sign Up, API Key etc My ...
0
votes
0answers
24 views

Magento 2 How to change media base url programatically

Does anyone know how we can change magento 2 media base url programatically ?
1
vote
0answers
28 views

Mobile Menu category link is undefined URL can't working in Magento 2​

I'm facing some annoying issues. When I'm on the desktop, no problem with the menu link. When I'm on responsive, when I go through the menu, I have the right URL but when I click on category link the ...
0
votes
1answer
28 views

This observer is not running at all

This is Observer. <?php namespace SimpleMagento\Custom\Observer; //use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; class Another implements ...
2
votes
1answer
55 views

How to redirect to custom page after Customer Successfully register..!

I need to redirect to next controller after registering page.
4
votes
2answers
43 views

Admin url redirecting to localhost/admin

Admin URL frontname is set to "admin" but on hitting the URL http://www.example.com/admin it redirects to localhost/admin Working on localhost web/secure/base_url and web/unsecure/base_url is set to ...
0
votes
0answers
26 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 ...
0
votes
1answer
33 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 ...
1
vote
1answer
17 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
36 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 ...
2
votes
0answers
30 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
52 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, ...
0
votes
1answer
54 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-&...
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
93 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
27 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. ...
0
votes
1answer
47 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?
0
votes
1answer
41 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 ...
1
vote
0answers
21 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
33 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
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....
0
votes
0answers
35 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
61 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
0answers
20 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 ...
0
votes
0answers
19 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 ...
0
votes
0answers
17 views

Switch Store View on Login

I have created a custom module that observes the Login button so that when it is clicked I can switch the store view to a different store view. So far, this appears to be mostly working. However, upon ...
3
votes
0answers
27 views

Error: The same url in all products Magento 1.9

I've tried to show the related products under the images of products. Until here all is ok, but the URL of the products is showing always the same of the first related product How can I solve this? ...
2
votes
2answers
85 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<...
1
vote
1answer
24 views

Append extra param for my Magento 2 entire site dynamically

my requirement is like one magento site with having some query params. By starting website with www.abc.com/?id=1-2-3 like this i want carry this query param my entire site can any one how can achieve ...
0
votes
0answers
17 views

Magento2.1 category URL structure

Want to set my category pages URL like this: https://domain.com/categories/{category name} Also is it possible to set https://domain.com/category/{category name} for main categories and https://...
0
votes
0answers
27 views

Magento 2: How to create separate url for each items added by admin?

I have created a module which is used to add some user information by admin like name, image, short_description, description etc. I displayed short_description on listing page and added a link to ...
3
votes
0answers
48 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
-1
votes
1answer
25 views

magento 1 how can get images URL by images name

How can I get an image URL from the image name? Please provide me steps and also let me where need to keep code(folder or file location) to get URL.
0
votes
0answers
30 views

Ur Rewrite interesting problem Magento 2

I need to create URL rewrite for /vendor_module/product/test/id/666. In rewrite, I want to change id/666 to productTitle.html. But when I created it I faced an interesting problem: Magento sees "...
0
votes
1answer
17 views

CMS page with referer URL parameter

I have a customised CMS page which includes a login form, I have code that lets me grab the referrer url parameter which works fine when testing in pure php. However when putting this live I ...
0
votes
0answers
32 views

Difference between URL_TYPE_LINK and URL_TYPE_WEB

During an extended debugging session I tracked down an error with a third party module down to the use of URL_TYPE_LINK and URL_TYPE_WEB passed to the following function: Store->getBaseUrl() When ...
0
votes
2answers
24 views

How to Setup Multi Website With Visible Language Codes in Magento2?

I want to setup the below url structure in our website. http://www.domain.com/en -> website: domain / storeview: domain_en http://www.domain.com/de -> website: domain / storeview: domain_de http://...
0
votes
2answers
28 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
0answers
53 views

Magento admin URL failure

I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps: STORES → Configuration-Admin-ADVANCED-...
0
votes
1answer
138 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
1answer
15 views

How to prevent Magento to generate urls for disabled categories?

Using Magento 1.9.x I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend. Magento creates Urls for those disabled categories with and ...
0
votes
1answer
106 views

Link CDN url to my product saved in magento 2

I want to Link CDN URL to my Product in magento. So basically all the Images for the product will be fetched using the Image URL Rather than saving it on Magento Website (Project) Is it possible to ...
0
votes
1answer
37 views

Magento 2: Get root path in url, when the domain name doesn't match with magento folder name

I have domain name for my magento 2 site something like https://abcxyz.com/index.php, and my project folder name is something like shop.xyz.com (folder name). Now I have added an external file test....
0
votes
0answers
22 views

URL key for specified store already exists for category export via akeneo?

when i export categories via akeneo to magento 2. URL key for specified store already exists for categories in magento 2 export via akeneo pim any one how to fix this issue magento ver 2.2....
1
vote
1answer
173 views

Magento 2 getUrl is generating a different security key

I am trying to generate the following url, in the adminhtml area: $this->url->getUrl('adminhtml/system_config/edit', ['section' => 'mysection']); // where $this->url is an instance of \...