First time here? Check out the FAQ!
2

How do I link to a question in askbot with a relative URL?

How do I link to a question in Askbot in a way that it doesn't use the full path (hostnames could change)?

Is there a shortcut like #10 or similar? (The person that asked me the question was thinking in terms of ticket management systems like the ones in github, trac, etc)

Alex Hans's avatar
41
Alex Hans
asked 2018-03-09 09:50:59 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I'm not able to answer my own question, for some reason. Not as a community wiki question, not as a normal question. This is something that has been asked in our local askbot deploy and I thought It'd be useful to put out there since, although it may seem as common sense, they didn't find and answer here.

Alex Hans's avatar Alex Hans (2018-03-09 09:51:46 -0500) edit

I keep submitting the answer to no avail so I'll leave this here (Markdown syntax - Try in the comment preview): While there's no specific shortcut for it, you can always use relative links omitting the protocol and hostname and using `/` at the start of the url. For instance, if I want to link to the answer `[Readable Link - With Hostname](https://askbot.org/en/question/2488/list-of-askbot-sites/)` I can use `[Readable Link](/en/question/2488/list-of-askbot-sites/)` [Readable Link](/en/question/2488/list-of-askbot-sites/) [Readable Link - With Hostname](https://askbot.org/en/question/2488/list-of-askbot-sites/)`enter code here`

Alex Hans's avatar Alex Hans (2018-03-16 12:13:42 -0500) edit

Having too little karma prevents one from posting questions or answers with hyperlinks!! A workaround is add spaces in the urls for instance, describing links rather than linking. Then once one has enough karma, one can edit one's answer to fix the links.

slelievre's avatar slelievre (2018-04-06 13:23:59 -0500) edit

Thanks. @slelievre. If that's the case, there should probably be a message informing the user so that he doesn't think it's a bug. I'll try to look into it if I have some time.

Alex Hans's avatar Alex Hans (2018-04-09 08:39:38 -0500) edit

@Alex Hans -- yes, warning the user would be a very welcome improvement. I don't know whether there is an existing issue or "pull request" for that at the development headquarter for ASKBOT: https://github.com/ASKBOT/askbot-devel

slelievre's avatar slelievre (2018-09-02 18:11:06 -0500) edit
add a comment see more comments

1 Answer

2

While there's no specific shortcut for it, you can always use relative links omitting the protocol and hostname and using / at the start of the url.

For instance, if I want to link to the answer [Readable Link - With Hostname](https://askbot.org/en/question/2488/list-of-askbot-sites/)

I can use [Readable Link](/en/question/2488/list-of-askbot-sites/)

Readable Link

Readable Link - With Hostname`

Alex Hans's avatar
41
Alex Hans
answered 2018-04-09 08:38:29 -0500, updated 2018-05-09 22:42:09 -0500
edit flag offensive 0 remove flag delete link

Comments

@Alex Hans -- Please edit your answer to remove the "enter code here" at the end.

slelievre's avatar slelievre (2018-04-27 08:36:22 -0500) edit

@slelievre: done

Alex Hans's avatar Alex Hans (2018-05-09 22:42:24 -0500) edit

add a link in your answer

alinademidchik10's avatar alinademidchik10 (2018-10-31 06:18:29 -0500) edit
add a comment see more comments