Magento 2 Category URL? - magento2

I'm trying to find the URL directly to categories - I use Megamenu but I've tried everything I can find but keep getting 404 errors
For this example let's assume im trying to get the link to 'Furniture' category which contains active products, the direct link to the product works fine using domain.com/my-main-product.html
I've tried
http://example.com/furniture
http://example.com/catalog/furniture
http://example.com/catalog/category/view/id/143
Can anyone recommend how I can find them please - my layout currently is:
Default Category
Furniture
Test Category
All I get is 'Page doesnt exist' (404)
Any help would be greatly appreciated

Please check the following path.
{select category}--> search engine optimization-->url key.
You can see the URL there. When you visit you should append .html to the URL. For example, if the value is furniture your URL should be like this
http://example.com/furniture.html
or
http://example.com/index.php/furniture.html (if mod_rewrite is not enabled)

Related

How to use the keyword "location" in the URL parameter in AWS Amplify

I am currently working on a 1 page HTML app that uses URL parameters to do an API call. the URL parameters are set and used in QR codes so its necessary that they are able to change dynamically. A example URL would be something like app.com/index.html/?environment=demo&location=Kiosk
I currently have this app deployed in AWS Amplify, but I cant get other keywords to chain together. I have the following redirects in place:
These redirects make sure that every URL parameter I pass in the link works EXCEPT some keywords like the "location" keyword, next to some others. Using this keyword as a URL param gives a 502 server error, or if the redirects are not used an access denied error.
does anyone know how to get the location keyword to work? Thanks in advance!
You should be able to use a single rule that will forward everything to index.html EXCEPT urls with a "file extension" from the list below. That lets all your links work, but assets like images, fonts, code will pass through.
Doc for: Using Redirects - Single Page Apps
</^[^.]+$|\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json)$)([^.]+$)/>

Sitecore Redirect Not Working for Item of Type "Redirect Pattern"

I'm a developer working on creating some redirects on www.willistowerswatson.com. I am using the https://marketplace.sitecore.net/Modules/3/301_Redirect_module.aspx?sc_lang=en tool, which uses very similar redirect concepts to what already exists in sitecore. I have created a /sitecore/system/Modules/Redirect Module/Redirects/SampleRegExRedirect item, which uses the /sitecore/templates/Redirect Module/Redirect Pattern template. Here's what I have set its fields to:
Requested Expression: ^https://www.willistowerswatson.com/somepath/(.+)$
Response Status Code: 301 Moved Permanently
Source Item: /sitecore/content/WTW-Home/$1
The goal is to redirect a links like https://www.willistowerswatson.com/somepath/industries to the valid link https://www.willistowerswatson.com/en/industries . However, it's not working at all. I get a "Page not Found" when I try to hit https://www.willistowerswatson.com/en/somepath/industries or https://tw-local.willistowerswatson.com/somepath/industries (without culture code). I even tried setting the "Requested Expression" field to : ^https://www.willistowerswatson.com/en/somepath/(.+)$ and that didn't work either.
What I am doing wrong? I know this tool is a sitecore feature, but the regular expressions used should have the same syntax. Can anyone please help? Thanks!

Angular developers need a path to call for the content from aem page

I generated the json file and gave the path /bin//filename.json . I am able to see the json file in author mode but not in publish. Our aem ops team says they cannot make bin as public. Tried to change the path, using js generated the json path file now at path /content//***/filename.json which I am able to see in author mode but not in publish.
My question is is there any other way that I can try . Please if any other ideas do comment.
Thank you.
Or just simple: Angular get content of page by call .infinity.json
Examp:
Your page is: /mysite/en/home.html
We change to : /mysite/en/home.infinity.json
For more detail: https://forums.adobe.com/thread/2337725
Good luck
We open using url under /bin/.. for SlingServlet
First create a slingSevlet
#SlingServlet(paths="/bin/filename.json", methods = "GET", metatype=true)
Then check the filter and make sure that /bin/filename.json accepts GET requests:
curl 'http://localhost:4502/system/console/configMgr'
Search for 'Apache Sling Referrer Filter'
Check the configuration

google analytics - api is not working?

i just start one internal server, to show info from our sites!
and we intend to centralize all analytics data in one internal page,
so i try API from google... (in this example page : https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/ )
it supose to return one graphic with accessed numbers by users
but get just one blank page...
of couse I put my ClientID...
any help? any tips?
thanks in advance!!
[]s Sena
PS:
here is the code i have working on just, download from the link, note that i used my ClientID..
(49803909)

What are the "base URLs" for status, photos, etc?

I developed an app that looks for specific terms using the facebook api (search).
Every result comes with an ID for the item that can be of many types like "status","photos",etc.
I remember that some time ago I could surf facebook and get this URLs from the browser address bar, but now with some updates that facebook has made it seems to be all AJAX based calls and it seems like you do not have a "specific page" for each item.
I looked over the web and could not find anything regarding this.
Is there any way I can get a "photo id" from the API and open it like "http://facebook.com/photos/0293820293842"?
Thanks for any clue.
https://graph.facebook.com/{id}/picture
https://graph.facebook.com/40796308305/picture (by page id)
https://graph.facebook.com/cocacola/picture (by page's name)
https://graph.facebook.com/4/picture (by user id)
https://graph.facebook.com/4/zuck (by user name)
after some time I just gave up trying to get the picture from the data provided by the search API.
From the api I get entries of type "photo" but they do not match with the API documentation found at http://developers.facebook.com/docs/reference/api/photo/ since I do not receive the fields "picture", "source" or "images" (they just does not exist in the results from a search)
Looking to find a way to use the approach of "setting up the URL from the fields received from the API" I could not get any sucess either.
That's one case... I set up a search for "pepsi"... and within the results I got a "photo" object.
In this object I have the following fields:
id: 100002307882828_188072634633218
author\id: 100002307882828
link : "http://www.facebook.com/photo.php?fbid=320417371337648&set=a.133681116677942.17717.131381520241235&type=1" (this link really points to the photo's page, but is not the photo itself)
object_id: 320417371337648
I used the URL you provided as a "base" and tried to setup some combination that returns me a photo but I always get "Content not found" as result.
The only way I could find the final photo URL is to make another call to the API using the Photo Id as parameter (but I would need to do a lot of calls to the API and this just do not fit my scenario)
If I call https://graph.facebook.com/320417371337648 I get everything I need from the photo, but this is the "another call" I would need to perform for each result I get.
Thanks a lot for your help,
Regards,
Victor Reboucas