You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Alex O'Ree <al...@apache.org> on 2025/01/01 00:13:32 UTC
[jspwiki] relative links outside the wiki
Is it possible to have relative links within the wiki?
I.e. i want to have some direct links to other web applications that are
cohosted with jspwiki. For example "/webapp1/home.jsp"
Putting that into the wiki seems to always convert to a wiki article link.
The only solution i've found that does work is having an absolute link,
i.e. https://IP:port/webapp1/home.jsp however this is not really helpful in
this case as the folks running the web application will have different IP
addresses and whatnot.
if an external relative link isn't possible, is there a way to grab a
system property or http request parameter (i.e. fetch the request URL's
hostname/ip address and use that somehow to set an absolute link?
Re: [jspwiki] relative links outside the wiki
Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi Alex, and happy new year everyone!
You might define/use a new interwiki link ([#1]). Changes on its URL will
require a restart though. I don't have the code in front of me, but it
might be perfectly possible to put your relative URL there.
HTH,
juan pablo
[#1]: https://jspwiki-wiki.apache.org/Wiki.jsp?page=InterWiki
El mié, 1 ene 2025, 1:13, Alex O'Ree <al...@apache.org> escribió:
> Is it possible to have relative links within the wiki?
> I.e. i want to have some direct links to other web applications that are
> cohosted with jspwiki. For example "/webapp1/home.jsp"
> Putting that into the wiki seems to always convert to a wiki article link.
> The only solution i've found that does work is having an absolute link,
> i.e. https://IP:port/webapp1/home.jsp however this is not really helpful
> in
> this case as the folks running the web application will have different IP
> addresses and whatnot.
>
> if an external relative link isn't possible, is there a way to grab a
> system property or http request parameter (i.e. fetch the request URL's
> hostname/ip address and use that somehow to set an absolute link?
>