Any idea when the /images/[id] will be fixed so it links to /[id] again?
I’m getting tired of always having to edit the url before copying.
get '/:forum\_id/:id/last' =\> 'topics\#show\_last\_page' get '/forums/:forum\_id/topics/:id/last' =\> 'topics\#show\_last\_page' get '/:forum\_id/topics/:id/last' =\> 'topics\#show\_last\_page' constraints\(page: /\[0-9\]+/\) do get '/:forum\_id/:id/:page' =\> 'topics\#show' get '/:forum\_id/topics/:id/:page' =\> 'topics\#show' end get '/:forum\_id/:id/post/:post\_id' =\> 'topics\#show', as: 'short\_topic\_post' get '/:forum\_id/topics/:id/post/:post\_id' =\> 'topics\#show'
However, because Phoenix has a completely different method for matching routes (it can only use a fixed string prefix), the best we can do with the Phoenix router (outside of hijacking the request pipeline) is [this](https://github.com/derpibooru/philomena/blob/master/lib/philomena_web/router.ex#L368-L373):
(Note that this is also why you can't go to/dis
anymore to get the General Discussion forum. You have to go to/forums/dis
now.) Furthermore, it wasn't compatible with our resourceful routing scheme. You may have previously noticed this inconsistency on the Rails side, where routes like/:image_id/tag_changes
did not exist, and were always pointed to/images/:image_id/tag_changes
. The same thing applies here. These are the reasons I am moving to this canonical format. To me, with the new framework, it doesn't make any sense anymore to keep/:id` as the canonical route.
https://derpibooru.org/search?q=philomenais equivalent to it.
Derpibooru costs over $25 a day to operate - help support us financially!