Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Forbidden - 403

Avatar

Level 3

Hi,

 

Getting below error msg while clicking on the navigation option provided, it should redirect to href page.

Please suggest what could be the reason.

 

Thanks,

Heena

 

Heena06_0-1599910048201.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

 Hi @Heena06,

The issue is that the URL you are trying to visit does not have the an extension (eg: .html or .json).

What do you mean by "the navigation option provided"? 

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

 Hi @Heena06,

The issue is that the URL you are trying to visit does not have the an extension (eg: .html or .json).

What do you mean by "the navigation option provided"? 

Avatar

Level 2

Hi @Heena06 ,

 

There should not be a trailing slash while calling the Resource.

 

When Sling tries to resolve the same path, it won't be able to find the script to load. Please use any extensions .html, .json or .model.json etc. It will render the script based on extension or selectors match.

Avatar

Community Advisor

@Heena06 

There seems to be issue with the request URL.
Are you using the shorten URL using etc/map? Then remove the last slash and hit the sling match path. 

Can you provide more details on this?

Thanks,
Nikhil

Avatar

Level 2

Since you are getting 403 due to default GET servlet, this means that the URL is not mapping to a resource. It is possible the "provided navigation option" was generated wrong. It is possible the trailing / is to blame and could be checked first. Additionally see if the servlet (as a component) and the bundle are active.