[
https://issues.apache.org/jira/browse/JSPWIKI-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18037472#comment-18037472
]
Alex O'Ree commented on JSPWIKI-1227:
-------------------------------------
found the utility. looks like it's
HttpUtil.getAbsoluteUrl(context.getHttpRequest(), loginUrl);
i'll update the hack jobs i just implemented to use this instead, thanks
> Documentation issue for baseUrl
> -------------------------------
>
> Key: JSPWIKI-1227
> URL: https://issues.apache.org/jira/browse/JSPWIKI-1227
> Project: JSPWiki
> Issue Type: Bug
> Reporter: Alex O'Ree
> Priority: Minor
>
> according to this link
> [https://jspwiki-wiki.apache.org/Wiki.jsp?page=Configuration#section-Configuration-BaseURL]
> there is a supported Base URL setting available in jspwiki.properties. That
> setting is not defined in the default settings file nor any custom variations
> of the file.
> Moreover, i couldn't find any reference in the source code to it loading from
> the properties file. The only reference i did find was loading from the
> servlet context.
>
> In several cases, we actually need the full url of the server, (email, atom,
> rss feeds, etc) and right now... i'm not sure there's a good way to do this
> besides calculating it from a http servlet request uri.
>
> Is this perhaps documented elsewhere or maybe i'm missing something?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)