Questions tagged [url]
Denotes question about URL issues and custom URLs.
963
questions
0
votes
1
answer
114
views
Add new string to product url
I would like to ask if it's possible to make magento ignore a string added to a product url. For example, I have a product url: http://mywebsite.lc/product-name
Is it possible that when entering: ...
0
votes
0
answers
313
views
How to change contact page url in Magento 2
When we entering contact form in footer from any page it redirect only - /contact/index/
Any options such that we can submit form in footer any page without redirect to another page
0
votes
0
answers
498
views
How to get or append some extra query param to url
I have added some links in top. i want get query param from url and append in to every links in top dynamically
like my links are = test1, test2, test3
My mail url is = https://apcd.com
When ...
4
votes
0
answers
999
views
Issue with Magento 2 generated sitemap.xml
I'm using Magento's built in sitemap generation tool and have it set to generated nightly. The issue I'm facing with it is that the urls in the sitemap do not match the ones found on the site.
To ...
0
votes
2
answers
2k
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 ...
0
votes
1
answer
1k
views
Put a trailing slash at the end of CMS URL without redirection
I would to put a trailing slash at the end of my CMS URL, but without make redirection when it's possible : I want to put this slash when the URL is build.
In the BO, in CMS page, we can define url ...
2
votes
4
answers
2k
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?
0
votes
0
answers
443
views
Url uppercase converted to lowercase letter Magento 2
I installed a template and i noticed that when i use uppercase it's converted to lower case. The module name is sm mega menu and the template name is Shop4u so where to search and what to change to ...
1
vote
1
answer
2k
views
Magento 2 pass multiple parameters in the admin grid action url
In Magento 2.2.5, I am sending the id in the url now, But, I want send multiple parameters in the admin grid action url. I created admin grid using layout Blocks. Not used ui component.
How to ...
1
vote
1
answer
2k
views
magento 2.2.5 turn back to home when i change store view
i've an issue on magento 2.2.5. I've created two store view it/en, when I'm on product page and change store view from it to en and vice versa,
I'm redirected to the home page. Someone can help me? ...
2
votes
2
answers
12k
views
magento 2 redirect url with parameters from controller
I am trying to redirect to a different controller from one controller . I also want to set an Url parameter along with the redirect. But this is throwing me an error
Uncaught Error: Call to ...
0
votes
2
answers
74
views
Url of last order of current user
I need to implement a link which redirects to the url of the last order of the current user
How do I do that ?
I have a code that load the last order, but I need to get the URL
$orders = $...
1
vote
0
answers
99
views
Magento get product link using V1 API
$storeUrl."/index.php/rest/V1/products?searchCriteria[page_size]=200&searchCriteria[currentPage]=1"
It returns products list but I want to get each product link. How it is possible?
0
votes
1
answer
221
views
Full base url appended after base url when reaching page
For a demo environment, I had to upload my Magento project to a server, without a domain name. My Magento base URL is http://62.221.209.128/plesk-site-preview/rodrigootazu.com/62.221.209.128/, but as ...
2
votes
0
answers
147
views
How to remove store code when changing store views?
So I've setup multiple views for my website, but the thing is, when I change store views, the URL ends up looking like this:
https://www.domain.com/shop/product1.html?___store=english&...
2
votes
0
answers
467
views
Magento 2 : How to remove the default Store langauge code from the URL
I have integrated multi language stores one for "EN" and second for "DE"
After changed options "Add Store Codes to URL"=>"YES"
(Magento2:: System -> Configuration -> Web -> Add Store Codes to URL=>...
2
votes
0
answers
996
views
Magento2 get url of all CMS pages using their identifiers
I am preparing one common array which returns the complete details of all CMS pages. In this array, I need to pass the URL of all cms pages. I do have an identifier of all pages. How can I get the URL ...
1
vote
0
answers
9
views
Omit inner category URLs from url path
I have a magento 2.1.10 setup running..
Recently made a bulk of change in the categories navigations.
The currently structure is somewhat like below
All > Pillows > Shop All Pillows > ...
3
votes
2
answers
1k
views
Max URL Levels in Controller Magento 2
I have custom controller outputting JSON format which works well for the below URL level;
** Works
base url/module/folder/action
//equates to Vendor\Module\Controller\Folder\Index.php
However I ...
2
votes
2
answers
633
views
How to restrict direct access `/pub` with url?
How to restrict direct access /pub with the project URL (www.domain.com/pub) in Magento 2.
2
votes
2
answers
2k
views
Magento 2 : How to get current product programmatically in a helper?
Could someone advise what's the best way to get the current product in a custom helper? Basically if I am a product page I need to get it's sku
1
vote
1
answer
174
views
How to remove a specific href from a top-menu link in Magento
i post before several day this one
Hello I am trying to make 3 items on menu to be not click-able and I want to ask how to remove a specific href from a top-menu link in magento? (I don't want to ...
2
votes
1
answer
37
views
how to stop creating multiple url of product
Product URL created for all stores even I have disable the stores 1,2,3,4. I just need store 2. but while uploading the product the nos of product URL created for all stores(in url_rewrite table). If ...
0
votes
0
answers
128
views
Magento 2 admin is not working?
I am using magento 2.2.2
Frontend is working fine but admin is not working.
I have tried to deploy, upgrade, cache, compile etc but the admin is not working.
The admin url is strange:
http://...
0
votes
2
answers
546
views
Unable to change product URL key?
Our catalog staff accidentally changed URL key so we have to revert it back to original.
We have changed and updated the product URL key to its original value:
And flushed both Index and Cache ...
1
vote
1
answer
670
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
1
answer
2k
views
Make backend url domain different from frontend url domain
How to make different URLs for website frontend domain URL and admin domain URL for Magento 2?
currently, this is how I access my Magento 2 site:
frontend: https://magento.zzz
backend: https://...
0
votes
0
answers
126
views
Allowing access to index.php/customer/account/login with nginx
I am new to Magento and have setup a new instance manually. I can see the home page successfully but am unable to access
http://xyz/dev/index.php/customer/account/login/
and get a 404 error from nginx....
1
vote
1
answer
207
views
Magento 2 Get URL from Where order is placed in Observer
After order status change in observer I am getting data of the order.
Now I want to get the URL of the site from where order is placed.
Like if main store then - www.example.com
if french store ...
0
votes
1
answer
105
views
Magento 2.2: Base URL removed when attempting to access admin login
Was having problems yesterday with my server, which the community seemed to think were irreparable, so I decided to rebuild it.
Set up a LAMP stack with Redis and re-installed magento. Used my ...
0
votes
1
answer
151
views
Change of SEO Url for product and category URL
Magento version: 2.2.5
The categories are:
level 1
level 1.1
level 1.2
level 2
level 2.1
level 2.2
when I go to level 1.2 the url shows up as mysite/level 1.2
But I expect url to be as ...
2
votes
2
answers
1k
views
How to compose URL for AJAX in Adminhtml Magento 1.9
I'm inside the Admin area, I'm adding a check inside the products, inside my File phtml write:
<?php $ajaxUrl = Mage::helper('adminhtml')->getUrl('adminhtml/MyCompany_MyModule_AjaxController/...
1
vote
0
answers
391
views
Add Custom url to href in email template not working
I try to generate an a href element in my email template that will open a mobile app, to do this i just have to replace the http or https in url with my app name, the a href element should contain the ...
1
vote
1
answer
914
views
Magento 2 URL issues
I use Magento 2.2.4 version, if I open a subcategories my URL have .html suffix in both: category and subcategory.
The url is look like this:
https://www.example.com/en/clothes.html/pants.html
and ...
2
votes
1
answer
57
views
How to exclude ® ™ signs in URL
We are having a URL issues
For Example -
If Title = Bose® SoundLink™ 10 Wireless Music System
Then URL = bose-soundlink-10-wireless-music-system
But in our new website URL is - boser-soundlinktm-...
0
votes
1
answer
757
views
Change checkout redirection to custom page (2.2.4)
I've created a custom page where I submit my cart to create an order.
Now, on the checkout/cart page, when I click on the button to go to the payment, I want to go to my custom page.
I try many ...
1
vote
2
answers
419
views
Magento 2 : admin URI gets duplicated
Today I finally was able to migrate magento.
Now, I wanted to check out the admin dashboard and for some readon, URI is being duplicated:
https://server.com/storename/admin/admin/index/index/key/...
0
votes
1
answer
140
views
Which Magento 2 core function creates the url for the static folder files including css, js and images
I want to add a parameter at the end of the static content urls, but i am unable to find a global method where i can make a change and it starts reflecting on the all static content urls.
My file and ...
1
vote
0
answers
104
views
Magento website showing error when uploaded to Hostgator server
i have created a website on magento1.9 platform it is running properly on my localhost Xmapp server. Now i uploaded my website data to hostgator server and made all necessary changes like nameserver ...
1
vote
0
answers
85
views
Magento Store view URL
We have Magento with 3 stores with language English and Arabic for each. It is working fine without any issue. We are planning to change the URL of each website.
Current URL:
http://example.com/...
3
votes
1
answer
4k
views
Magento 2 - Set global variable
I want to know if it's possible to add a global variable all through the site (so that if I need to change it, I would only need to do it once).
It's for an URL.
0
votes
2
answers
163
views
Magento 1.9.3.8 Full https causes double / ending
I made my entire site https by changing the unsecure_url to https rather than http. Then in my .htaccess I added:
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=...
1
vote
3
answers
4k
views
Magento 2 get Product Url in Foreach
In Magento 2, I trying to get the Product URL using this code $_product->getProductUrl (). But it is having only the first product's url to all the products. How to fix it.
Used the Following Code:...
1
vote
4
answers
8k
views
How to remove trailing slash from Magento 2 url
I have installed ssl in my Magento 2 store and configured base url to the https version.
But when accessing http version, Magento redirecting url with appending trailing slash.
For example:
My ...
1
vote
2
answers
2k
views
How to rewrite Magento 2 default contact page url
How can I change Magento 2 contacts page URL from /contacts to contact-us.html?
0
votes
1
answer
683
views
Do simple products need an individual url_key set?
As we had controversial opinions about this on our project, I'd like to ask the question here for another opinion (or two):
For Magento2, should we set url keys for simple products? Which of the ...
0
votes
3
answers
893
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
1
answer
264
views
How to get secure url canonical in magento
In the Magento backend, under
System -> Configuration -> Catalog -> Catalog -> Search Engine Optimizations
It adds category and product pages to the canonical url automatically, however the url is ...
1
vote
2
answers
836
views
Magento 2 URL structure
I Need a module or solution that can change Magneto2.1.9 URL generator.Actually want my URL to be like
This https://www.example.com/folder/product-name-SKU
the folder is my stores.
Right now it ...
1
vote
1
answer
1k
views
Magento 2 show name instead of id in Layered Navigation
I'm using Magento 2, and on the category pages, on the left, where are listed all the subcategories, if I click on any of them, I get a link ending in: ?cat=id
If I try to follow the same path from ...