Questions tagged [url]
Denotes question about URL issues and custom URLs.
928
questions
0
votes
0answers
14 views
jQuery (server side) search and sort using Ajax
I tried to create search and sort from live URL using Ajax , i used do search function and i managed to retrieve the data from the URL .
I am showing Ajax response in select options as below code. I ...
0
votes
2answers
954 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 ...
2
votes
3answers
1k views
I change my admin URL to a custom URL and I cannot access my store admin anymore.
I change my admin URL to a custom URL and I cannot access my store admin anymore.
How can I revert the change that I made?
6
votes
2answers
3k views
Get page URL from current page, different store-view
I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
0
votes
1answer
22 views
Magento generates duplicate urls
I am new to Magento and I do not yet master the PHP language. (Magento ver. 1.9.4.2 I have a problem with the automatic generation of duplicate urls. I searched several forums but none of the ...
0
votes
0answers
5 views
Magento 2.3.5 layered navigation (left sidebar) url adding category id not the name
I am configuring a Magento 2.3.5 shop.
After clicking on a subcategory name in the layered navigation the category id (?cat=) is showing in the url instead of the name. Example: www.myshop.com/shoes/?...
0
votes
1answer
27 views
Magento2 create custom dynamic routes
Magento2 how can I create custom dynamically routes/URL ?
I need URLs as below
For e.g. https://example/find-a-store/nsw/tuggerah/
Here in URL, nsw & tuggerah will dynamic generate
I used below ...
1
vote
1answer
907 views
Magento 2 - Use secure url for static files field into database?
I'm using Magento 2, and I'm trying to find the field of "use secure URL for static files" (or similar label).
I can find web/unsecure/base_url into mgxo_core_config_data , but not that one, I need ...
0
votes
1answer
17 views
Magento 2 - Current url not work well in copyright section
I need to get the current url in the copyright.phtml section.
This is my code:
echo $this->getUrl('*/*/*', ['_current' => true, '_use_rewrite' => true]);
After clearing the cache it seems to ...
0
votes
0answers
22 views
Frontend Links are not working properly - M2
I have issue in website frontend links, When i am opening any URL, that is considering as base url. For example
My base url is www.xyz.com and categories url are green and red, both are parent ...
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
2answers
1k views
Magento 2: How to check if checkout payment page
I'm looking on how to check if i'm standing at checkout payment page, which have url "fudu.magento.net/checkout/#payment" by php or by js.
I was trying to use to get url, but it always return ...
1
vote
2answers
850 views
Magento2 - Is it possible to get specific store url in cms block?
I am trying to get store URL or base URL for a specific store in cms block.
I have tried {{store _store="1"}}
Also, {{config path="web/secure/base_url"}}
I wanted to know if this is going to work ...
1
vote
2answers
28 views
Retrieve product url with category in the graphQL
I've enabled at backoffice the usage of the category inside the product url by setting this option:
When I access the magento frontend, I can now access the product with the url <category>/<...
0
votes
1answer
28 views
Magento 2 - remove .html from URL by using .htaccess
We have some wrong URLs in our store ending with .html. If the user opens such a URL, then the .html should get removed, otherwise the site cant get found.
So I added this rule to my .htaccess file in ...
1
vote
2answers
809 views
Add to cart url returns invalid url
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
1answer
930 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
0answers
27 views
Changing Url magento 2
I want to change www.m2.com/authors/view/index/id/1 to www.m2.com/authors/author_name.html
how can i achieve this
help
1
vote
1answer
437 views
Is there any way to remove pagination ID from URL?
I'm wondering Like, Is there any way to remove Pagination Page ID from URL?
Like, I moved to the second page or any other page during listing page.
SO URL will be changed as default behavior of ...
3
votes
1answer
2k views
Get frontend category URL in admin area with correct base URL
I try to load categories in the admin area with store specific values.
$this->categoryCollectionFactory->create()
->setStoreId($storeId)
->addAttributeToSelect(['name', 'url_key'])...
2
votes
1answer
2k views
Magento 2: “Use Categories Path for Product URLs” configuration does not working correctly
I have a store with few categories. I want to have only one url for each product - domain.com/product_name.html. I don't want to have products URLs with the category path in them.
I set “Use ...
0
votes
2answers
964 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/...
5
votes
2answers
11k views
Magento2 - Missing required argument
I'm trying to create a block I can call in my override of 'root.phtml'.
In the root file, I added some extra classes to the body depending on the url, so I've created a module which I call on this ...
2
votes
1answer
1k views
Add noindex to single category in Magento 1.9
I want to modify this line for only one category:
<meta name="robots" content="INDEX,FOLLOW" />
I want to add noindex like this:
<meta name="robots" content="NOINDEX,FOLLOW" />
I tried ...
3
votes
2answers
964 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 ...
0
votes
0answers
12 views
Magento 2 not able to read the query parameters passed to category page on live server
I am trying to read the GTM parameters passed on page before page is redirected to external resource for authentication. I can read this query parameters on local server but on production server it ...
0
votes
1answer
23 views
404 Page Categories Not Found
We have problems with page 404 page and our URLs have two formats without knowing why.
See the example below.
www.mywebsite.com/catalog/category/view/s/herboristerie/id/419/ (Okay)
www.mywebsite.com/...
0
votes
3answers
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 ...
1
vote
1answer
1k views
How to remove cookie data from static content request?
I have created a separate domain to serve static content. Also modified URL values in System->Configuration->General->Web.
When I inspect any static content request with firebug in firefox browser, I ...
2
votes
1answer
1k views
URL Rewrite Rules in Admin
I apologize if this is a duplicate request someplace else, but I could not find an easy way to locate it if it exists, so here we go.
I want a simple breakdown how to use the fields in the URL ...
2
votes
3answers
3k views
Magento2 : Get Product Url for Store
I'm writing a custom indexer and I need to retrieve the product URL for different stores.
$product->setStoreId(2)->getProductUrl();
still returns the URL with the admin store (backoffice) in ...
0
votes
1answer
1k views
how to find Payment Response URL, in Magento account?
We are configuring, a payment gateway from Worldpay to Magento our website. it says, we need to copy the value of Payment Response URL from Magento to Worldpay,
Payment Response URL. How can i find ...
0
votes
2answers
42 views
how to get image from a module
in my case there is a picture inside my module and I want to get that image inside an HTML file (it's an html file for email header), but when I use Magento syntax it doesn't appear, I have got the ...
0
votes
1answer
70 views
Re-direct Category Menu item to different URL
I want to redirect my Menu sub item to a different URL how can I do that?
Like Blog Menu Item to
Dropbox.com
I want the Blog menu to be redirected to : a seperate URL to new website for example: www....
0
votes
3answers
965 views
How to change my url from www.xxx.com/Magento to www.xxx.com
I am running Magento 2.2.7 and my current URL for my store is https://shop.xyz.ca/Magneto and I would like to change it to be https://shop.xyz.ca/
I am set up on Windows Server and using Xampp 3.2.2
...
10
votes
5answers
9k 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/...
8
votes
3answers
2k views
Magento2: Remove Store Code URL only for default store
I am developing a Magento 2 store with two store views, one for each language(English and Italian). I turned on the "Add Store Code to Urls" option from backend, so my URLs looks like:
http://mystore....
0
votes
1answer
2k 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 ...
0
votes
1answer
15 views
Is changing to canonical urls a bad idea if you have an established website with thousands of backlinks?
I have a magento website with thousands of backlinks. I just realized that the categorical structure is negatively affecting my seo. Will switching to canonical break many backlinks? Is it a bad idea? ...
62
votes
13answers
127k views
How to get Magento 2 base URL?
In Magento 1 Mage::getBaseUrl();, but in Magento 2 I have to pass responsible class object type in constructor.
I don’t have the idea which class I have to pass?
2
votes
2answers
747 views
How to update the mini-cart proceed to checkout according to customer login in magento 2?
I Want to check the user login status in mini cart and redirect the customer to the login page when click the proceed to checkout button in mini-cart.
How to edit the minicart.js file to achieve this?...
0
votes
2answers
41 views
Magento 2: How to generate backend url with key from frontend?
I need to generate backend url with key like this:
https://m2.com/admin/test/test/index/key/123XXXX
using URL builder
$this->getUrl('test/test/index')
how can i achieve this from the frontend ...
0
votes
0answers
46 views
How to change Filter Url in Magento 2
How to change the URL of the Magento 2 store when Filter is applied. When I apply any Filter the URL looks like https://jpm2.mydemoweblink.com/watches/alpina?jpf_gender=6780 where I want to change the ...
0
votes
3answers
3k views
Magento2 multistore - redirect url without store code to default storeView url
Not sure if this is a bug in this project, or a Magento2 bug itself
The question is site is configured to use store code in urls, and that's working fine... but urls without any store code are loading ...
7
votes
3answers
26k views
How do i call a controller function in ajax?
This is the content of my .../template/exportdb/attributes.phtml file:
<span id = "attributes">Generate</span>
<script type="text/javascript">
jQuery(function () {
...
1
vote
2answers
49 views
Magento 2 - add prefix before category and products urls
I want to add prefix in category and product urls of Magneto 2.3.4.
I was able to add prefix in product urls but not working on category urls.
Please guide.
0
votes
3answers
466 views
Magento 2: Config product get seo url
I have written a helper function that should take any product from a list.phtml, check if it has a parent (config) and if so return the parent's url instead of the simple product's url.
public ...
1
vote
2answers
3k 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/...
4
votes
0answers
549 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
3answers
93 views
Changed Base_Url and Now I am getting 404
I just migrated a Magento2 site from a cloud server to my localhost to do some developer work on. I have everything I need installed and ready to go. I am just trying to redirect the Base-URls. I ...