Dotclear

Ticket #877 (closed enhancement: wontfix)

Opened 16 years ago

Last modified 16 years ago

Support / as blog url

Reported by: dooblem Owned by: xave
Priority: normal Milestone: 2.2
Component: module:core Version: 2.1
Severity: normal Keywords:
Cc:

Description

Hello,

In my blog, in wanted all my URLs like "/post/mypost" instead of " http://blogurl/post/mypost". So I use "/" as dc_blog_url setting.

I don't know what you think, but for me using full URLs for internal links is redundant and ugly.

Moreover, I use the dctranslation plugin and my blog has two different hostnames, one for each lang.

For all I have seen, the "/" blog_url setting works fine, except for the attachments : attachment URLs are rendered as "public/myfile".

A workaround is to use "public" instead of "/public" as dc_public_url, but I think this is used somewhere else and can broke some links.

So I used the following simple patch to "inc/core/class.dc.media.php".

Attachments

class.dc.media.php.patch Download (702 bytes) - added by dooblem 16 years ago.
lib.html.php.patch Download (628 bytes) - added by dooblem 16 years ago.

Change History

Changed 16 years ago by dooblem

comment:1 Changed 16 years ago by Moe

Hello,
does your relative URLs work in your Atom feed ?

comment:2 follow-up: ↓ 3 Changed 16 years ago by dooblem

comment:3 in reply to: ↑ 2 Changed 16 years ago by dooblem

Ok, images in the feed are broken with / as dc_blog_url. It is because the "absoluteURLs" function fails if url_root contains no  http://host/

I used the following workaround (see lib.html.php.patch).

Changed 16 years ago by dooblem

comment:4 Changed 16 years ago by Moe

Why don't you simply use " http://blogurl/post/mypost" as the blog URL ? Don't you think that it's more simple to use " http://blogurl/post/mypost" as your blog URL ? Who cares if URLs are full or not ?

comment:5 Changed 16 years ago by dooblem

Just for the beauty of HTML and the KISS principle, I think we should use absolute URLs for external links and relative URLs for internal links. In my case, my blog is also accessed from 2 differents "blogurl" : one for french, one for english.

I don't know why all CMS I've seen so far always use a "base url" parameter. For me it's more complicated in the code.

But you're right... it's more simple in dotclear to use full urls.

Thanks for your response.

comment:6 Changed 16 years ago by xave

  • Status changed from new to closed
  • Resolution set to wontfix

The true reason is that Dotclear is fully multi-blog ready and uses the URL as a blog identifier, that's why absolute URLs cannot be used.

Note: See TracTickets for help on using tickets.

Sites map