Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
1
vote
2answers
709 views

Magento 1.9 : How to change URL /customer/account/login to /kupac/nalog/prijava/

What is the easiest way to change the /customer/account/login/ URL to /kupac/nalog/prijava/ but to preserve the functionality too? I will also need to change /product/id/X to proizvod/X where X ...
0
votes
1answer
591 views

Get .phtml file path in Magento 2

I would like to get the location of the .phtml file of this URL https://chaldal.com/sales/order/print/order_id/13/ of Magento2.
0
votes
2answers
174 views

Add to cart url returns invalid url in magento1.9.0.1

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
2answers
559 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 ...
1
vote
2answers
559 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 .
0
votes
0answers
244 views

add to cart url is not working

I used this as my code: Mage::helper('checkout/cart')->getAddUrl($product) It gives output of 'url' like this: http://192.168.0.78/pooja/testmagento/index.php/checkout/cart/add/uenc/...
1
vote
0answers
119 views

URL Rewrites Magento 2

I've encountered a weird issue with my Magento 2 URL Rewrites function. It seems like my 3rd party plugin (Yotpo) is pulling an /admin with the ProductURL function. So for example this is what is ...
0
votes
2answers
430 views

Unwanted url is coming with magento2 site url

Whenever I open my website it opens with an unwanted URL like www.mysite.com/?SID=gjc3knlipsmuhsbc73j0is36h2. It should open like www.mysite.com/ Why this type of URL is coming. And when I ...
0
votes
2answers
69 views

HTTPS 301 redirecting to http version

We have implemented https on our Magento store a few months back and everything seems fine exceptive noted that the server response for 301 redirects don't seem to be honoring the https:// ...
3
votes
0answers
334 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
2answers
758 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
288 views

Magento 2: Create a url like : localhost/magento/{frontname}/profile/id/5

I want to create a url like `localhost/magento/{frontname}/profile/id/5' so, i have created a controller file profile.php namespace Learning\HelloPage\Controller; use Magento\Framework\Controller\...
2
votes
1answer
3k views

Magento 2-How to link image to category page through cms page?

I have a static page of shop. On this page there are different images. I want to link these images to the specific categories types. For example i have an image of men's clothes. Now i have also a ...
0
votes
2answers
297 views

Get product Url in custom module Observer.php file Magento 1.9 [duplicate]

In custom module Observer.php i am trying to get Product url On view.phtml it gives correct working path like http://websitename.com/brave-gentleman-new-york-belt.html But same code in Observer.php ...
1
vote
1answer
2k 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/...
1
vote
2answers
510 views

Magento 2: How to send id with the url in MVC pattern

I want to send the id with the URL for eg: http://192.168.1.108/magento2/profile/id/34 and get id from the my controller. Please suggest a solution.
4
votes
1answer
2k views

Magento 2: Create a Page with Dynamic URL with Same Controller

I posted a question earlier but didn't able to understand the answer, Magento 2: How to create a dynamic url with the same controller i want to create a page with the dynamic url but with same ...
1
vote
1answer
3k views

SecurityError: Permission denied to access property “tinymce” on cross-origin object

I'm using Magento 1.9.3.4 AND KeyCDN. I configured the js/media/css files to come from CDN. On the CDN I enabled the CORS. The CDN uses HTTP/2, shared SSL and the Origin Shield setting is set to "...
6
votes
4answers
4k views

Get parameters from URL Magento 2

Assume I have a URL like this, http://mystore.com/cms/sales/order/view/order_id/286/ I want to get values of the order_id which is 286, Please help with some example or snippet in Magento 2.
1
vote
1answer
1k views

Magento 2 - The words “admin” and “index” appear twice in the admin URL

I have Magento 2.1.9 installed. After a futile attempt to change the admin URL, it resulted to me not gaining access to the admin panel. After resolving that issue, the admin URL displays like this: ...
1
vote
1answer
40 views

Dont use indexcontroller if no url match

I have this FAQ module with configurable url in backend. But my indexAction also catches the default url at mywebsite.com/faq and in this case I only want it to catch mywebsite.com/faqurl which I has ...
1
vote
3answers
409 views

Where i change header and footer links?

When I change the base url in the Magento admin panel it doesn't work. I think it's hard coded somewhere but can't find this file.
0
votes
0answers
38 views

url automatically redirect to my magento2 site

When user type url "xyz" that will automatically redirect to my magento2 website "https://mywebsite". How can I achieve this in magento2? Please help me to do this.
0
votes
0answers
123 views

Configurable product Url Not changing in magento 2

I'm trying to change the URL of my configurable products I have changed the URL through Product->search engine->urlkey But it's not getting effect on the product still loading from old URL
2
votes
1answer
52 views

My website is being forward to another URL off the search engine links

When you type my website in the address bar you make your way to our website. But if you Google or Yahoo us and click on the link they provide as a search result you get forwarded to another URL that ...
3
votes
1answer
115 views

How to add a virtual url in Magento 2

I have the following situation: I have a multiple store views and for one of the store I have let's say this url: wwww.myurl.com. What I try to do, is to change the base url to : www.myurl.com/...
1
vote
2answers
2k views

uenc in the url

We are migrating a project, after migrating code to new server, at the cart page the product removing is not working (http://35.185.190.192/checkout/cart/delete/id/61137/uenc/...
0
votes
2answers
1k views

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

How to Get Unique Product URL Key Magento2..
0
votes
1answer
84 views

Currency switch rewrite does not preserve querystring

Magento version 1.9.4 We are using Magento currency switcher URLs, and we need to add some query string at end, but when it resolves the rewrite, the querystring is gone. Ex: https://www.website....
1
vote
1answer
2k views

How to change product URL and redirect?

Here's the situation I need to redirect one of my product to homepage make it as homepage at the same time the URL must be changed to home, so instead of www.example.com/sample-product it should be ...
1
vote
1answer
670 views

Magento 2: How to add external URL in custom top links

I would like to add a custom top link which redirects to external URL like Google.com or a blog link etc. I added the custom top link using referencecontainerBlock. However, I'm not sure where ...
2
votes
2answers
798 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 ...
1
vote
0answers
81 views

SID is not showing in the frontend

I turned on SID using store>configuration>general>web>use Store ID in frontend but it does not show in the front end. I've tried looking for solutions but all I could find is how to ...
0
votes
1answer
145 views

How to pass query string in customer.xml?

I want to add Query string on customer/account/login/ page from the customer.xml Below are the code: <action method="addLink" translate="label title" module="customer"><label>Log In</...
1
vote
2answers
3k views

Magento 2: Regenerate categories URL rewrites

Can somebody tell me how can i regenerate category URLS in magento 2? I did not found any solution or module, that can help me. Here i found module, that regenerate URLs for products and it's work ...
1
vote
1answer
338 views

Non-default store view URL 404

I have a Magento CE 2.1.6 website, with 2 store views for different languages: English store view (default) French store view My problem is that when I am seeing the website on one store view if I ...
1
vote
1answer
86 views

Magento2 - is it possible to specify multiple urls in api?

I would like to know is it possible to (call) specify multiple URLs in a single route webapi.xml ? Ex:- <?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
1answer
456 views

Magento 2 Observer for 404 Page

I want to log all 404 page in magento 2. Recently we have moved from woo-commerce to magento 2 and all the product/category/pages URL are now changed. We want to log all 404 Page URL and take ...
1
vote
1answer
642 views

Website switching in magento 1.9 without changing the default url

I have a website in Magento 1.9 called www.example.com. In Magento, we know that we can create multiple websites so I have created like that multiple websites with their own store and store view. so I ...
6
votes
2answers
4k views

Magento 2: Remove Store Code in URL only for default store

We run a magento 2 multistore in 2 langauges where default store view is german. Online shop is also available in french. Store code is added to URLs like the following: www.domain.at www.domain.at/...
1
vote
1answer
39 views

Can you define a custom target_path for specific products

I have a unique situation being thrown at me here. I have a product which in every way is a standard Magento catalog product. Has an entity id, sku, attributes the whole works. None of this can ...
0
votes
2answers
504 views

404 error in my product url

In my store I sell hats. Main hat is Cap. When I use category bar I pick Hats-->Cap. Browser goes to hats/cap.html And there is descripcion and other stuff. But on my homepage I also have all hats (...
0
votes
2answers
452 views

Custom URL Rewrite If a condition is met

I'm looking for a way to change URLs if a condition is met. Something like: URL: http://mysiteurl/ $url = 'http://mysiteurl/'; if ($userGroup == 'ABC') { $url .= 'user/ABC/'; } The new URL ...
9
votes
7answers
6k views

Website start redirecting to another url

Maybe it's infected by some virus. My website starts redirecting to these infected URL. http://mon.setsu.xyz and some time https://tiphainemollard.us/index/?1371499155545 Infected links what I did ...
0
votes
1answer
685 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 ...
0
votes
1answer
487 views

Where can I change the value for direct_url privacy-policy-cookie-restriction-mode?

Although I can edit the cookie_restriction_notice_block to change the link to the relevant Privacy Policy page I would like to be able to change the value of {{store direct_url="privacy-policy-cookie-...
0
votes
1answer
373 views

is google search return “Not Visible Individually” product?

I'm just looking confirmation here! For example, the simple product of configurable product are set to Not Visible Individually. When I load simple product, it goes to 404 page. My Doubt if the ...
1
vote
2answers
537 views

Getting different category id for the products

I am trying to add a link on my website's product pages and redirect the users based on the category that the product belongs to. For example, I have a category chairs which is having a Category Id of ...
1
vote
0answers
29 views

Magento 2: How can I change the Value in the Url of the paypal Button?

My problem is happening every time I click on the express checkout with PayPal. I get an error that the link is not working, I found out that when you click the button the value is for example"(1,000)...
1
vote
0answers
322 views

How to add prefix before category url in Magento2?

My all categories are assigned in default category. Now I have urls like that: www.magentoShop.com/category_name/ And I want to add prefix "something" it should look this way: www.magentoShop.com/...