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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
MehdiHKhan's avatar
83
MehdiHKhan
asked 12 years ago

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
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 (12 years ago)

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 (12 years ago)
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 (12 years ago)

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

Evgeny's avatar Evgeny (12 years ago)

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

Toms's avatar Toms (12 years ago)
see more comments