Ticket #877 (closed enhancement: wontfix)
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
Change History
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).
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.

