Questions tagged [url]
Denotes question about URL issues and custom URLs.
933
questions
2
votes
0answers
109 views
How to make Magento 2 accessible using different url Domain without creating Multi Website?
So using other PHP frameworks such as Laravel and CI, I can point my virtual host to the same project folder and access it with a different domain. However using Magento 2 the base URL is defined in ...
0
votes
1answer
308 views
Multiple Store URL
I've spent more than a week to solve the problem with URL's in my Multiple Stores in Magento Community 2.3.2, but I got nothing.
What I need:
URL structure: example.com/store_name/store_viewname
...
0
votes
1answer
46 views
change url for store view
I have Magento 2.3.3 I created store views French, English, Turkish. I want to change url,.
for example http://localhost:8080/magento/fr for French store
http://localhost:8080/magento/...
1
vote
1answer
54 views
Inconsistent Product URL
I'm facing an issue in Magento 2.2.0 and Unero Theme 1.3.2 where there are products that have an URL like:
https://example.com/catalog/product/view/id/440/s/product-url-key/57/
and the others are:
...
0
votes
1answer
28 views
Pass Search Query to Product Page
I'd like to pass the search query to the product page that is clicked on.
The reasoning is because if someone searches for a product, it may be on a grouped product page, so if they click on that ...
0
votes
1answer
42 views
All urls are not working, it is accidently deleted,
Yesterday, I accidentally deleted unnecessary backup files from the public_html folder and deleted other important files as well.
Since then, the main home page of the website has been well displayed,...
0
votes
1answer
37 views
Magento2 category url
I want to change my url to the endpoint of slug on categories.
Ex:
www.example.com/level1/level2/level3.html
should be like this:
www.example.com/level3.html
0
votes
1answer
47 views
Disable URL redirection from catalog to product view in case of the error “The requested qty is not available” when adding too much products to cart
I can't figure where to find the code displaying "The requested qty is not available" and redirecting to the product URL when we add more product than the stock.
[I'm using Magento 2.3.3 and custom ...
0
votes
0answers
35 views
View Magento's Rest API generated guest-cart in Store Website using URL with guest-cart id
I have a requirement to show guest-cart items(created and items added using Magento rest API) on the Magento store website to initiate checkout from the website.
I tried http://storeurl.com/checkout/...
0
votes
1answer
289 views
Magento 2.2.6 Undefined index: REQUEST_URI in vendor/magento/framework/App/Valitron.php on line 1293
I use magento 2.2.6 i have this notice with valiton.php from 2 days, i don't understand why.
The message is :
PHP Notice: Undefined index: REQUEST_URI in /var/www/vhosts/bonbonrose.ch/httpdocs/...
3
votes
1answer
133 views
Does Magento 2 always transliterate product url keys or only when generating it?
In our Magento 2.2.9 shop when updating a products url_key it has been transliterated automatically to remove spaces, umlauts, etc.. We now updated to 2.3.3 and this behavior stopped working.
I ...
0
votes
1answer
36 views
Find backoffice controller
I have a javascript call to this url : https://mysite/admin/admin/export/export/key/b7c4bdb5a1b9f5147f498741adc99/entity/catalog_product/file_format/csv
From this url how can I find where is located ...
0
votes
0answers
282 views
Magento 2 How to change media base url programatically
Does anyone know how we can change magento 2 media base url programatically ?
1
vote
0answers
160 views
Mobile Menu category link is undefined URL can't working in Magento 2
I'm facing some annoying issues. When I'm on the desktop, no problem with the menu link.
When I'm on responsive, when I go through the menu, I have the right URL but
when I click on category link the ...
0
votes
1answer
33 views
This observer is not running at all
This is Observer.
<?php
namespace SimpleMagento\Custom\Observer;
//use Magento\Framework\Event\Observer;
use Magento\Framework\Event\ObserverInterface;
class Another implements ...
2
votes
1answer
70 views
How to redirect to custom page after Customer Successfully register..!
I need to redirect to next controller after registering page.
4
votes
2answers
61 views
Admin url redirecting to localhost/admin
Admin URL frontname is set to "admin" but on hitting the URL http://www.example.com/admin it redirects to localhost/admin
Working on localhost
web/secure/base_url and web/unsecure/base_url is set to ...
0
votes
1answer
62 views
Magento 2 SKU and URL Key is not generating unique by default
When I create multiple product with same SKU and same URL Key it is creating, as I know Magento do not allow this.
I googled alot but didn't find any configuration for this,
Please guide me what is ...
1
vote
1answer
174 views
Store switcher url is not redirecting to the store
I'm working on store switcher in magento 2.3.3 I get the url but url is not redirecting to the particular store again get back to the same store
http://test.de/test_de/stores/store/switch/?SID=...
0
votes
1answer
163 views
How to Change URL of Magento Site After Modifying Apache DocumentRoot?
My question is similar to How to do redirect the URL of site but I want to do the opposite. And there is a further challenge or two I cannot understand yet.
Our setup is a Magento 2.3.3 store running ...
2
votes
0answers
52 views
how to customize the Magento 2, Core API URL
I want to customize the magento 2 core base API URL.
For example,
If my magento base url is http://local.m233ee.com/rest/v1/ . As per my project requirement, i have to change the base URL to ...
1
vote
2answers
329 views
Magento 2.3: Forward to another URL without redirecting
I'm writing a module that will accept any Magento URL with /discount/COUPON_CODE appended to the end, set the code in a cookie for later use, and then forward to the URL minus the discount part.
So, ...
0
votes
1answer
165 views
Difference in response from magento swagger and postman Magento 2
I have custom API in which I am retrieving customer balance as:
use Magento\CustomerBalance\Model\BalanceFactory;
........................
........................
$model = $this->balanceFactory-&...
0
votes
0answers
26 views
Magento 2.1 - Add prefix to category url
How to add a prefix for Magento 2.1 URL and show child without a parent?
Example: Category level1: www.example.com/categories/fashion.html
Example: Category level2: www.example.com/categories/men....
1
vote
2answers
581 views
Magento 2 - mage/url is not working in module. Uncaught ReferenceError: url is not defined
I am running the Magento 2 on the localhost server. http://127.0.0.1/magento3
here I've built a custom module for payment gateway.
In custom JS I want to use the mage/url.
I need to use ajax for the ...
1
vote
3answers
41 views
change product URL programatically
I need to change all my product URLs and I would like to use a code snippet to use it. All I need is a simple code which is Magento 2 compatible and will change the URL for one product then saves it. ...
0
votes
1answer
288 views
Why do I need the SID in my URL?
Since I installed my store I see the SID code in my URLs but I don't know why it's there, I found an option in my admin panel to disable it.
Could you explain to me why do I need it?
0
votes
2answers
192 views
URL Query parameters are being lost
I am having a strange issue with my product filter (layered navigation) not working, I have narrowed this down to the URL paramaters being lost because of a 301 redirect.
If I go to the URL... http://...
0
votes
1answer
39 views
Why my admin route is showing 404 and URLs include server.php?
I already checked everything, my remote server is working properly by my local showed up this issue, as you can see in this image below.
I don't know if it's related to my local environment using ...
0
votes
2answers
32 views
URL is appending if I click more than once
We have created megamenu for our site. But the issue we are facing is that the url is appending if click more than once instead of showing corresponding page.
How to resolve this issue?
Below is the ...
1
vote
0answers
22 views
Product url_keys nulled after some time
Setup: Magento 2.2.x, OpenSouce (Magento Community Edition)
Products were imported from Magento 1,
url_path attributes were cleared
all url_key values are unique (both products & categories)
...
0
votes
1answer
77 views
Magenot 1.9.x : The URL “http://magedk.local/” is not accessible
I can't install magento 1 because I have error:
"The URL "http://magedk.local/" is not accessible."
"Unable to read response, or response is empty"
Magento installing on docker.
0
votes
0answers
16 views
URL rewrite programatically
I need to rewrite all my category urls. they are more than 600X so it is not possible to set them one by one. how can i set them automatically?
4
votes
1answer
75 views
Product to category redirect
Is there a way to link/redirect a product page to a category?
Scenario: I have 70-80 new products that all go into the same category. I can either chose to put one of the products in the "News" ...
0
votes
0answers
21 views
Website URL's issue
An issue has appeared suddenly with URL's on my site. I currently have the following configuration.
AU Store (https://example.com.au/au/)
US Store (https://example.com.au/us/)
However, if a user ...
3
votes
0answers
35 views
Error: The same url in all products Magento 1.9
I've tried to show the related products under the images of products.
Until here all is ok, but the URL of the products is showing always the same of the first related product
How can I solve this?
...
2
votes
2answers
2k views
Magento2 : How To Get Parameters from URL In Controller
http://mystagesite.com/magento232/custom/module/check/?params=<%3Fxml+version%3D"1.0"+encoding%3D"UTF-8"+standalone%3D"yes"%3F>6<%2FRESPONSECODE>Invalid+Session+Token%3A+Session+has+Timed+Out<...
1
vote
1answer
58 views
Append extra param for my Magento 2 entire site dynamically
my requirement is like one magento site with having some query params.
By starting website with www.abc.com/?id=1-2-3 like this i want carry this query param my entire site can any one how can achieve ...
3
votes
0answers
50 views
Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login
I anonymously added some ACL permissions in Magento 2 and saved.
I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
-1
votes
1answer
61 views
magento 1 how can get images URL by images name
How can I get an image URL from the image name?
Please provide me steps and also let me where need to keep code(folder or file location) to get URL.
0
votes
1answer
56 views
CMS page with referer URL parameter
I have a customised CMS page which includes a login form, I have code that lets me grab the referrer url parameter which works fine when testing in pure php.
However when putting this live I ...
0
votes
2answers
31 views
How to Setup Multi Website With Visible Language Codes in Magento2?
I want to setup the below url structure in our website.
http://www.domain.com/en -> website: domain / storeview: domain_en
http://www.domain.com/de -> website: domain / storeview: domain_de
http://...
0
votes
2answers
95 views
how to get rest URL in Magento2
I need to get a link of this kindhttp://localhost/Magento2/rest
I have a code by which I get base_url:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$storeManager = $...
0
votes
0answers
64 views
Magento admin URL failure
I successfully changed my store domain name and I was able to access my admin URL. Now when I changed my admin URL and getting 404 error. I followed these steps:
STORES → Configuration-Admin-ADVANCED-...
0
votes
1answer
312 views
Magento 2.3.2 - Switch Website (store) without going to base URL
I'm using the following code to switch websites.
app/design/frontend/[Vendor]/{Child_theme}/Magento_Store/templates/switch/languages.phtml
<?php
/** @var \Magento\Store\Block\Switcher $block */
...
0
votes
1answer
19 views
How to prevent Magento to generate urls for disabled categories?
Using Magento 1.9.x
I have a lot of disabled categories that I'm utilizing in my store to view specific products on Magento frontend.
Magento creates Urls for those disabled categories with and ...
0
votes
1answer
329 views
Link CDN url to my product saved in magento 2
I want to Link CDN URL to my Product in magento. So basically all the Images for the product will be fetched using the Image URL Rather than saving it on Magento Website (Project)
Is it possible to ...
0
votes
1answer
227 views
Magento 2: Get root path in url, when the domain name doesn't match with magento folder name
I have domain name for my magento 2 site something like https://abcxyz.com/index.php, and my project folder name is something like shop.xyz.com (folder name). Now I have added an external file test....
1
vote
1answer
593 views
Magento 2 getUrl is generating a different security key
I am trying to generate the following url, in the adminhtml area:
$this->url->getUrl('adminhtml/system_config/edit', ['section' => 'mysection']);
// where $this->url is an instance of \...
1
vote
0answers
114 views
Modifying the custom controller url to SEO friendly in Magento 2
I have created my custom module for loading the custom template.
Here is the code of Vendor/Module/etc/frontend/routes.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...