Hi @sarah_la ,
If you are adapting a request to your Sling Model, then you can use
@SlingObjectprivate SlingHttpServletRequest request;
then, get URL from request using
request.getRequestURI();
Please refer sample code snippet as below,
package com.mysite.core.models;
import org.apache.sling.ap...