Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
2
votes
0answers
297 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
135 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
335 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
122 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
320 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
3k 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
79 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
54 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
130 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
416 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
817 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
80 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
730 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
617 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
190 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
592 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
580 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
251 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
121 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
441 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
70 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
346 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
771 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
298 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
302 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
525 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
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
412 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
128 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
117 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
93 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
678 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
819 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
150 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 ...