Views
Replies
Total Likes
We have created sling mappings in following location
Sling Mappings are capable to altering URLs in pages.
Please refer to https://youtu.be/bJ_cXcAE7G8?t=1080 It explains both forward and reverse
Views
Replies
Total Likes
I tried this as well but for me it is still not working.
Views
Replies
Total Likes
Can you help me with what should be the value of "resource.resolver.map.location" property in this config org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json ?
should it be /conf path or /etc path ?
Views
Replies
Total Likes
Hi @SaumyaJa
To already answer your question about where to store it, it should be below ui.apps.
Can you send me the path where you added the Resource Resolver Configuration in your project?
Greetings
Rik
Views
Replies
Total Likes
It is under ui.config/src/main/content/jcr_root/apps/<project-folder>/osgiconfig/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json
Views
Replies
Total Likes
And do you hvae one configured for a specific environment in ui.config/src/main/content/jcr_root/apps/<project-folder>/osgiconfig/config.[environment].publish?
Because that would overwrite the more generic one.
Also to verify if your configuration is deployed correctly you can go to the developer console and print all the OSGi Configurations from the publishers and search for your configurations.
Here you have a step-to-step guide on how to get OSGi Configurations through the developer console.
Views
Replies
Total Likes
No, as of now we have the general one like config.publish. And i verified in Dev publish developer console - the configuration exists with these mappings.
Views
Replies
Total Likes
correct
Views
Replies
Total Likes
I think we'll need some extra debugging to verify what the issue is.
Can you go to the this link, here you can test your sling mappings.
1. Make sure that the right sling mapping is applied here.
2. Here you can fill in the request you would do on your cloud environment
3. Click on resolve to check if it points to the correct internal url
Views
Replies
Total Likes
Unfortunately, we dont have access to this link in Dev publish instance. In local , i have checked multiple times and it is working perfectly.
The issue is with Dev publish cloud environment.
Views
Replies
Total Likes
Thanks for the reply, could you check the logs of the dispatcher to verify if the requests to /gyms/services/personal-training/location.html are blocked or not?
You can also check the access logs of the publisher to see if the request is comming through or not.
Let me know what you see in the logs.
Greetings
Rik
Views
Replies
Total Likes
@SaumyaJa Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Hi, Please can you tell how to mark correct a answer?? For that we have to post a question or we can mark correct previous answers also given on any other questions??
And how to do that??
Views
Replies
Total Likes
Not yet. None of the above answers is working for cloud publish environment. Hence still debugging.
Have raised an adobe support ticket as well. Will update as soon as i get the solution.