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

Feature Request: More beautiful Blog URL's #102

Closed
oliver-77 opened this issue Apr 4, 2019 · 5 comments

Comments

@oliver-77
Copy link

commented Apr 4, 2019

It would be nice if the Blog URL would look a bit more like talking links.
Currently the URL's look like this:

blogurl1
blogurl2

It would be nicer to omit the first part, like this:
http://pulse-5-3-1.test/A-Very-Nice-Blog-Post
or
http://pulse-5-3-1.test/another-title

@yuzoolcode

This comment has been minimized.

Copy link
Owner

commented Apr 5, 2019

There is a Blog URL META field so it can be changed and the prefix can be changed

@oliver-77

This comment has been minimized.

Copy link
Author

commented Apr 5, 2019

That's right. but you never get the word "blog" and the number(s) gone.
Whereby the word blog is not so bad I find.
I find the numbers bothering. So you always have to think about generating the numbers string from Pulse or I enter a number myself to make it look a bit nicer.

With most blog engines the URL just looks like this:
example.com/Another-Blog-Post

@yuzoolcode

This comment has been minimized.

Copy link
Owner

commented May 1, 2019

Thinking this over this will be hard to do. The complications are:

  • multiple and sub-blogs
  • how to handle posts with the same title
  • efficiency in the lookup between url and the blog txt file

Caching will fix some of this. But needs to be well thought out before proceeding.

@yuzoolcode

This comment has been minimized.

Copy link
Owner

commented May 27, 2019

This is done and ready for 5.3.3!

URLs of the form blog/A-Very-Nice-Blog-Post or blog/subblog/A-Very-Nice-Blog-Post are now supported

Note:

For this also, the old blog id url works too. So there is an extra URL format that also works
eg blog/A-Blog-Item or blog/zoo/A-New-Hippo

If the url prefix changes (eg to recipes, then the route is something like recipes/A-Pizza). The page loaded is recipes instead of blog in that case.

The idea is to have the new route for testing to see if it's a good fit. The route for this is handled differently from the others in dispatch.php, so its easier to add new ones.

If the dispatcher/router works well enough then the old blog URL rewrites in the .htaccess file could be removed. That would simplify the install too.

@yuzoolcode yuzoolcode closed this May 27, 2019

@oliver-77

This comment has been minimized.

Copy link
Author

commented May 27, 2019

Thanks, sounds great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.