First time here? Check out the FAQ!
2

Ability to remove "questions" part from URL?

Hello,

I'm not sure if I'm missing anything here. Where is the option to remove "questions" part from URL?

MehdiHKhan's avatar
83
MehdiHKhan
asked 2012-07-26 10:38:51 -0500

Comments

see more comments

1 Answer

0

This is possible by editing askbot/urls.py file, but removing numeric ID cannot be easily done now.

Evgeny's avatar
13.2k
Evgeny
answered 2012-07-26 21:03:44 -0500
link

Comments

thanks. Even I want to change /questions/ to be /posts/ in my site.

Another follow on question - How do I know if there are any dependencies when I change some code in askbot? Do you use any tools for checking any dependencies? Thanks.

pajju's avatar pajju (2012-07-26 23:34:39 -0500)

Thank you! Removing the nemuric ID part won't be necessary. If want to host askbot in a subdomain, I'll expect that it will start right from there, not in (virtual) question subfolder. Why is this default behavior? To fit with other django app perhaps?

MehdiHKhan's avatar MehdiHKhan (2012-07-27 04:04:26 -0500)
1

@MehdiHKhan even in sub domans you get routed to /questions. This is to show all the questions in the homepage. @Evgeny can we show and change this default behavior? Thanks

pajju's avatar pajju (2012-07-27 13:57:05 -0500)

I agree, the /questions prefix is unnecessary on the main page it should be just /.

Evgeny's avatar Evgeny (2012-07-27 16:58:49 -0500)

@Evgeny So can I simply remove "questions" from askbot/urls.py and that will not cause errors?

Toms's avatar Toms (2012-07-28 14:44:45 -0500)
see more comments