Questions tagged [url]

Denotes question about URL issues and custom URLs.

Filter by
Sorted by
Tagged with
0
votes
2answers
273 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
796 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 ...
0
votes
0answers
292 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/...
0
votes
2answers
75 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:// ...
0
votes
2answers
924 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
353 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\...
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
140 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
0
votes
2answers
504 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 ...
0
votes
1answer
267 views

Magento2 Add custom form in order view but url don't correct

I have a problem when add a custom tabs in order view. In new tabs, I have html form: <form action="<?php echo $block->getUrl('giftvoucheradmin/giftvoucher/addcodetoorder') ?>" method="...
0
votes
0answers
68 views

Incorrect page title - Magento 2.1.

For some reason when I access Login page I get on browser title "Payments". I searched everywhere for word "Payments" in my code and in Magento admin and remove it completely. The word "Payments" has ...
0
votes
0answers
30 views

URL inserted at the end of URL

I have a problem with url. I have an url http://example.com/ but css not work because search in http://example.com/example.comcss/... If I search a product directly insert: http://example.com/...
0
votes
1answer
318 views

Get Magento permalink URL for cart?

I used to use Shopify and the permalink to fill a cart was something like: http://domainname.myshopify.com/cart/370374:1,377854:1,37067790:1 Is there a similar way to do this with Magento? So far I'...
0
votes
1answer
203 views

Magento 1.8: Set category url in store view level

I have multiple websites (for each country) and each has one store view (different language). Currently categories have the same url for each store view. This, of course, brings some SEO problems. Is ...
0
votes
1answer
2k views

Magento 2 - URLs trailing slash redirection

I configured my Magento 2 store to ends with trailing slash. This work great. But when I browse the same page without trailing slash, it redirects to a 404 error page, and not to the trailing slash ...
0
votes
1answer
727 views

Redirect to new product page instead of current product Page

Onclick custom button "Register" (present in product view page), we are trying 3 things: Register user to site. (Working) Create new product programtically. (Working) Redirect to newly created ...
0
votes
1answer
701 views

Fatal error: Call to undefined method Controller::getProductUrl()

once we click on button in product view page, we are creating New Product Programatically & now i am trying to redirect to Newly created Product's url after click on same button. Error : Fatal ...
0
votes
1answer
232 views

Redirect to url of Programatically created Product

once we click on button in product view page, we are creating New Product Programatically & displaying pop up with message : "new product created" Instead of displaying pop up , i need to ...
0
votes
1answer
230 views

How to change the URL on menu selection?

Iam working on magento 1.9 theme When i make a menu selection of " Jewellery " , the url shown is http://192.168.1.99/in/index.php/sports.html instead of http://192.168.1.99/in/index.php/jewellery....
0
votes
2answers
959 views

How to get SID programmatically : Magento 2

I am working on multi store Store > Configuration > General > Web > Session Validation Settings > Use SID on Storefront is set to "Yes" allow customer to stay logged in when switching between ...
0
votes
2answers
45 views

Magento 2 urls opening as images

I am having this weird issue. Whenever i try to open a product or add them into cart. The link gets opened but as an image. That is if product link is abc.com/product/123.html This page only has a ...
0
votes
2answers
2k 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
61 views

Multisite getUrl not working on server

I have setup two site on localhost server. It's working fine on local. But on server it gives wrong url. It give base url on ajax call. When I use getBaseUrl it give right url Site setup. Website1 :...
0
votes
2answers
46 views

magento : search results redirects to live site

when iam searching results in search box in my local site it redirects to live site,if results found.If not it is in local site only.why its happening
0
votes
0answers
62 views

Plugin issue in Magento 2

I created an Plugin to change the category links from ?catId=xxx to the real category name. My Plugin look like this: class CategoryPlugin { /** * Url * * @var \Magento\...
0
votes
1answer
54 views

Static block store_url is appending a session id placeholder in url

Using a url in static block like this {{store url=door-machinery.html}} and getting this on the end ?<!--%20fpc%20session_id_placeholder%20-->. Any idea what's causing this and how to resolve?
0
votes
1answer
36 views

Trouble getting product URLs

After looking at various methods, the following code is almost getting what I want: $product = Mage::getModel('catalog/product')->load($product_id); $site_url = Mage::getBaseUrl(...
0
votes
1answer
28 views

CMS pages linked to from 2nd level category pages include category path in url and give 404

CMS pages (such as about-us, privacy-policy etc) link fine from root domain (such as domain.co.uk) and from domain.co.uk/category1.html. In this instance then the correct URL is domain.co.uk/about-us ...
0
votes
1answer
621 views

Magento 2 is there any way to add site url in admin wysiwyg editor

I am just want to put the site url in the admin wysiwyg editor. So I have search the site url like we use the {{view url=""}} in the admin. Please suggest if anyone have used the site url in the ...
0
votes
1answer
136 views

Magento 2 default suffix

I see Magento hasn't changed the default of the suffix in Magento 2 so my question is really why does Magento default to .html? I know you can change it but there must be a reason why its still a ...
0
votes
1answer
125 views

Custom folder not possible to open under magento

I have magento installed under my server, and I have created some custom folder and uploaded .php files there, but when I want to open that file from the url I get magento 404 page error. Those files ...
0
votes
1answer
599 views

Creating an exposed endpoint URL for service returns in Magento 2

I'm writing an extension that utilizes web services and I need a way for those web services to send information back to the extension over the internet. Would I just use a controller like every other ...
0
votes
1answer
286 views

404 on all .html URLs

I am getting an nginx 404 on all pages ending in .html in my test instance, which is in a subdirectory at the root of production. For instance, /test/, /test/contact/ and /test/about-us/ are all good. ...
0
votes
0answers
19 views

Multi Store Product Sharing

I have two stores, MainStore and ValentinesStore They mainly have different products but on the ones that they share such as "Single Hearts" if I click on the product it switches stores. From: ...
0
votes
1answer
19 views

Getting URL for Products only works for first store

Hey everyone so I have two stores. They sell almost all different products except a few, this is where the issue comes into play. We sell a product called "Single Hearts" which I display in both ...
0
votes
0answers
428 views

Customize onepage/success url with observer

I must to add order_id to url of onepage/success page, I write this code, but it appears to be not working. <events> <controller_front_init_routers> &...
0
votes
2answers
147 views

getProductUrl() taking url without giving any url in magento 1.9

I have a custom product page and have a button too on that page below the product. I added a link on the product and the link is <a href="<?php echo $_product->getProductUrl() ?>"> ...
0
votes
1answer
398 views

URL index.php remove not working

I took my Magento store from a live site to a localhost. Magento's version is 1.7, and it's running over WAMP on my localhost. The homepage was working fine, but all URLs from there gave 404 error ...
0
votes
1answer
364 views

How to change the url for SEO purposes of a custom module?

I have the following url for a specific entity brands/index/view/id/1/ I would like to rewrite this url to: brands/{{ brand_title }} How is it possible?
0
votes
1answer
2k views

Magento 2 get admin url

We are already know that How to get Admin page url in magento1 from this question How to get Admin page url? But how to get it at magento 2?
0
votes
1answer
78 views

Create adminhtml url with key from frontend page magento

I want to create a link to a module of adminhtml in email sent from module of frontend of magento. I have taken reference from link: https://stackoverflow.com/questions/11450146/magento-generating-...
0
votes
1answer
186 views

added .html suffix to products & categories but they are not showing with suffix

decided to go from no suffix to adding the .html suffix in due to an easier time redirecting currently existing urls. all of my products had been imported without any suffix. when I switched the ...
0
votes
1answer
79 views

Using URL parameter in welcome message

Can I use the URL parameter, for example: {{store direct_url="contact"}}, in the welcome message input in configuration > design in some way? I know HTML can be used there, so why not the URL ...
0
votes
1answer
579 views

How Can I Customize Magento Default URL (Product URL and Category URL)

Suppose i have the following URL: For Categories (example : apparels category): http://example/apparels.html For Categories (example : product under apparels category): http://example/apparels/...
0
votes
1answer
849 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.
0
votes
2answers
31 views

Migrating Magento website to different URL (Cause issues with extensions?)

I have a website www.example.com running on Magento 1.7 and I plan on making a Test website on another server. Basically moving files and database on example.com and place it under different URL, ...
0
votes
1answer
132 views

How do I change all the http:// urls to // on my homepage

I ran into trouble when I enabled SSL on my magento web store, my javascript console throws a mixed content exception since some contents of the pages are still requesting http:// protocol. I would ...
0
votes
1answer
53 views

magento change base_url with subdirectories

I have 2 websites - main www.mainwebsite.com with product presentation and shop based on magento, url - shop.mainwebsite.com. now I need to change shops url to www.mainwebsite.com/shop/. but after ...
0
votes
1answer
42 views

Automatic URL rewrite after deleting a product

Is there any way in magento to make an automatic url rewrite to the category of the product, after deleting that product?
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 ...