Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
4answers
814 views

How to get secure baseurl (https) in magento 2? [duplicate]

with this code im getting http://url.com i want to get https://url.com using object manager. i'm using magento 2.0.4 echo $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB); echo '&...
1
vote
1answer
515 views

URL Rewrite issue - category/sub-category/product urls not working

URL Rewrite issue - category/sub-category/product urls not working. When I create a new product it does not create the pretty urls, instead it defaults to the system urls. Could it be because they ...
2
votes
0answers
14 views

How come for a batch of newly imported products the URL structure is different than our normal configuration?

I imported some 34 simple products to our admin store, base site, via MageBees' Import/Export Products extension, as I often do. The problem is that their URLs are rendering as default/catalog/product/...
1
vote
1answer
297 views

Magento 2 can I have 2 front names for a module?

I want to create a module for which I would like 2 frontName is it possible. if yes how can I do it ? Example 1. example.com/a/index/test 2. example.com/b/index/test both pointing to app/code/...
1
vote
0answers
13 views

MULTIDOMAIN - Even if I change the URL on a product, the old version is being used

I am running a multidomain store, Magento 2.2.1 CE. The default value is in Danish. I created an Italian domain, where I need Italian URLs. In the backend, I go to a product, I select Italy as store ...
1
vote
0answers
68 views

How to get SID programmatically : Magento 1.9

I am working on multi store, and i want to share my cart between multi website using subdomain. Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront is set ...
0
votes
2answers
72 views

can't get admin url - Magento 2

I use the below code to get admin url of given frontName/controllerName/Action protected $storeManagerInterface; public function __construct(\Magento\Store\Model\StoreManagerInterface $...
0
votes
1answer
235 views

can't access website after adding store code to url

I am using magento 2.2.2 My store was working fine till I added store code to urls so I am no longer able to access my website using my website url mystore.com I have to add store code to access ...
4
votes
1answer
853 views

Magento 2 - Wordpress Integration url issue

I am using a magento 2.1.8 site. I have installed wordpress in a subdirectory of my root directory. I have integrated the wordpress and magento site by using fishpig wordpress extension. All other ...
2
votes
1answer
186 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
1
vote
1answer
262 views

Issue with URL Path of child category after change URL key of Parent category

I have an issue with URL path of child categories. I have changed URL key of the category , but still child category URL path with old URL key of the parent category. On the category page, i am ...
2
votes
0answers
304 views

Magento 2 - media URL

I have recently migrated a Magento 1.9.x site to Magento 2.2.2. On my product pages, I have noticed that one attribute (which is Text Area), whenever I used Magento directives such as {{media url=...}...
1
vote
1answer
141 views

Trying to search a table with url api call

I need help figuring out whats is failing my search. I am new at this so if I need to rephrase something please let me know: search 1 : (works) https://staging.cherrydale.com/rest/default/V1/...
0
votes
2answers
337 views

I want to get data by the current URL, so I have set a post value, but it is set for all pages [closed]

I want to get data by the current URL, so I have set a post value. But it is set for all pages, and I want to unset it if another URL opens. How can I do it? Please see my code: if ($currenturl = '...
2
votes
0answers
127 views

Downloadable product on Amazon S3

I'm trying to implement the following scenario: Host downloadable product on AmazonS3 Make S3 files private (not accessibile by direct url) Enable access if Referrer is mywebsite If I try to point ...
2
votes
1answer
364 views

Generate Adminhtml Controller url with get parameter in Block

I have a controller for adminhtml area like this: namespace Namespace\Module\Controller\Adminhtml\Order; use Magento\Framework\Controller\ResultFactory; use Magento\Sales\Model\Order; class ...
0
votes
3answers
4k views

How to define the url in js and how to load ajax in magento 2

I have get all the form data after the form submit, I have submitted the form data, but it is failed to load as ajax, after submitted it reloads the page. Ajax is not working, How to overcome this ...
1
vote
1answer
82 views

What param is expected in getBaseUrl() function in Magento 2

I want to return the image URL using getBaseUrl() function but I can't understand what value to set to the $value variable. $url = $this->_storeManager->getStore()->getBaseUrl( \Magento\...
0
votes
0answers
56 views

How to overwrite category page url to some specific cms page url?

How to overwrite category page url to some specific cms page url ? I have category with shop.html But i want to change or overwrite it on cms page i.e shop-cms. Even i want to make sure site-map ...
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)...
2
votes
1answer
1k views

get controller name by page url

I want to get the previous page controller action name from previous page URL in Magento 1.9. I get the previous page url by this: Mage::app()->getRequest()->getServer('HTTP_REFERER'); Now I ...
0
votes
1answer
143 views

Magento 1.9 add a fixed product prefix

First of all, did quite some research, but could not find the best solution in this case. For SEO reasons, we need to add a fixed prefix (with a slash) to all product URLs. Product URLs now look ...
0
votes
1answer
441 views

what RP means in Url Rewrite Management options column

I look at the Url Rewrite Management for custom URL rewrite and found that there are RP in option column. What is the difference between RP and non RP custom option?
1
vote
1answer
885 views

Popup modal :Submitting url in magento 2

I have created custom link using popup modal. I need to placed this link in My Account page->My Orders and next to Reorder link. Like below While clicking cancel it shows an popup window which ...
1
vote
1answer
84 views

Navigating away from catalog pages gets 404 page

User is at - http://randomCompany.net/rental/wheelchairs.html not looking at any specific product, just at that catalog page, they click a new menu link from the navigation, that leads to a CMS ...
4
votes
1answer
3k views

Add query parameter to current url in phtml

I want to add query parameter to my current url, I'm getting current url in my phtml like this: $current_url = $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]); I want ...
1
vote
2answers
757 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
642 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
208 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
628 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
3answers
610 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
263 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
123 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
456 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
71 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:// ...
4
votes
0answers
374 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
797 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
302 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\...
3
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
314 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
576 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 ...
2
votes
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
5k 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
2k 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
41 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
415 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
134 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