Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing outcome URL? #359

Open
hypercrites opened this issue Jan 28, 2018 · 19 comments
Open

Changing outcome URL? #359

hypercrites opened this issue Jan 28, 2018 · 19 comments

Comments

@hypercrites
Copy link

hypercrites commented Jan 28, 2018

hello, i like to know what i have to change if i want my URL like this
"?d=post/post-name"
instead of something like this
"?d=2018/01/28/13/46/45-post-name"
i don't like a timestamp and its easier to link posts imho.

@remrem
Copy link
Contributor

remrem commented Jan 28, 2018

Hi,
Currently BlogoText can't do that, but it can be done with an addon.
Do you need this quickly ?

@hypercrites
Copy link
Author

hypercrites commented Jan 28, 2018

oh yeah that would be very nice! :)
Edit: sorry for my short reply, i was in a rush. yes, an quick addon would help me alot! :)

@remrem
Copy link
Contributor

remrem commented Jan 29, 2018

Ok, I try to take a look this week.

@hypercrites
Copy link
Author

thank you 👍

@hypercrites
Copy link
Author

hey @remrem, how is it going so far? did you made any progress with an addon? cheers! :)

@remrem
Copy link
Contributor

remrem commented Feb 6, 2018

Hi!
I'm working on it, almost done.
But I do not move as fast as I hope, lack of free time :/
I hope it does not bother you too much ...

@hypercrites
Copy link
Author

don't worry, its fine, i just wanted a little status-update, take your time :)

@remrem
Copy link
Contributor

remrem commented Feb 13, 2018

I finalize the addon (debug and testing). I publish this in the next 2-3 days.

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

Hi, can you try the addon url_rewrite from https://github.com/remrem/blogotext-addons/tree/url_rewite ?
Just put the addon into your addon folder and activate it in the admin (there are some settings if you want to customize it).

P.S. The current version of BlogoText (3.7.X) is not yet at the top with some type of addon, we will improve it with the version 3.8 ;) I will modify the addon so that it is better with the next BT release ;)

@hypercrites
Copy link
Author

hypercrites commented Feb 18, 2018

works perfectly, thank you for this! :)

Edit: i tested it without a parameter wich breaks the function. however i do not use it without it (i was just curious), i just think i should tell you :P

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

I take a look ;)

@extragornax
Copy link
Contributor

extragornax commented Feb 18, 2018

@hypercrites The current version of the module should break the blogo post pages since you can't access them anymore (unless you use the "real" url)
Patch incoming

ex: http://blogo.extragornax.fr/?test=yolotron2 doesn't work
but http://blogo.extragornax.fr/?d=2018/02/18/14/38/23-yolotron2 does (same article)

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

Found and Fix, running some test right now.

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

v 1.0.1 : https://github.com/remrem/blogotext-addons/tree/url_rewite
2 bugs fixed, can you give it a shot ?

@hypercrites
Copy link
Author

i tested it and it still breaks if i leave the parameter blank, but it works now with other parameters.

@hypercrites
Copy link
Author

oh and i found out that clicking on random still shows the regular url outcome :P

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

ok, I look to disallow empty parameter (required) and to random ;)

Edit : Do you want to use an apache/nginx url rewriter rule ? Must find something else than disallowing...

@hypercrites
Copy link
Author

i don't really know, to be honest. the addon works for me exactly how i need it. i just played a bit arround, i didn't wanted to steal your time, sorry!

@remrem
Copy link
Contributor

remrem commented Feb 18, 2018

np ;) All feedback are appreciated ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants