Aliases cannot start with Dotclear's URL handlers [+ add a redirect option?] #1

Closed
opened 2023-04-30 10:44:11 +00:00 by p4bl0- · 1 comment
p4bl0- commented 2023-04-30 10:44:11 +00:00 (Migrated from github.com)

Hey,

I wanted to have a /pages/foobar alias for a /post/yyyy/mm/foo-bar-baz url, but it seems that this plugin cannot create aliases that starts with existing URL handlers (like post/, pages/, tag/, etc.).

This should probably either be fixed or explicited in the README :).


If it is fixed so that aliases are checked for before dispatching the URL to other handlers, it would be nice to also have the option to make aliases that redirect to their target URL.

With this feature, we could use this plugin for example to change the URL of a post and redirect the old one to the new one :).
(I would really appreciate to be able to do that, and never found a plugin to do so properly!)

Cheers!

Hey, I wanted to have a `/pages/foobar` alias for a `/post/yyyy/mm/foo-bar-baz` url, but it seems that this plugin cannot create aliases that starts with existing URL handlers (like `post/`, `pages/`, `tag/`, etc.). This should probably either be fixed or explicited in the README :). ----- If it is fixed so that aliases are checked for before dispatching the URL to other handlers, it would be nice to also have the option to make aliases that *redirect* to their target URL. With this feature, we could use this plugin for example to change the URL of a post and redirect the old one to the new one :). (I would really appreciate to be able to do that, and never found a plugin to do so properly!) Cheers!
JcDenis commented 2023-04-30 23:18:56 +00:00 (Migrated from github.com)

I tried my best to do that. But this changes how the plugin works, it stops using dotclear URL handlers and bypass them by catching a behavior...
Not sure there are no bugs.

I tried my best to do that. But this changes how the plugin works, it stops using dotclear URL handlers and bypass them by catching a behavior... Not sure there are no bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: JcDenis/alias#1
No description provided.