v7.0.1 - Unwanted comcode tags in ULRs
|
Posted
#72071
(In Topic #15136)
|
|
|---|---|
|
Community saint |
for example, this URL: Code
.../site/pg/galleries/image/bf-fontgng1_8
you can see is built up from the bf comcode tag from the following content: Code
[bf font="gng1" colour=8]Cinema room.
I don't know if this problem is restricted to galleries, but that's the only place I have noticed it so far.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
Even then, I get different URLs depending on whether flow-mode is enabled (URLs with query strings) or not (my file names but shortened if they are over some number of characters). The software should leave the file name intact if "URL Monikers" and "Short URLs" are checked just removing all query strings and using a simplified path. I have carefully namedmy files and don't need the software making "improvements". Bob |
|
Posted
|
|
|
Community saint |
That's probably because you don't have any comcode in the start of your image description. That's what it appears to be using to generate the URL. I don't see how "Single public zone" has any bearing on the URL's apart from consolidation.
That's probably true for "Short URLs", but for "URL monikers" it states: implying that it's the most likely cause.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
ocStaff (admin) |
Code
Code
i.e. we're adding that strip_comcode line. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
Also, need to replace \n with "-" otherwise you will get nonsense words in the URL as two words blur/merge into one.
Last edit: by temp1024
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
ocStaff (admin) |
Code
$moniker=strtolower(preg_replace('#[^\w\d\_\-]#','',$moniker));
Code
$moniker=strtolower(preg_replace('#[^\w\d\_\-]#','-',$moniker));
24 byte seems fine to me, I don't think people want long URLs. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
I don't think most people mind long URLs, they just don't like unintelligible URLs with query strings and meaningless tokens in them. On my site, I am getting URLs that end with "julian-ritter-painting_6.htm". How is this preferable to "julian_ritter_painting_model_janet_in_1975.htm" which matches the page title, keywords and page content? Which of thee URLs would you prefer to receive in an email, especially if there was a list of URLs? The above is only true when "flow-mode" is not enabled. When "flow-mode" is enable, the URLs are even less intelligible with query strings like this: "julian_ritter_pics.htm?probe_type=image&probe_id=9" Bob
Last edit: by BobS
|
|
Posted
|
|
|
Community saint |
My thoughts exactly. Also more real words in the URL helps search engine indexing. I'm thinking a minimum of 50, and preferably say 64. That should give plenty of room for a few words as prefixes.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
And, yes, having keywords as part of the URL will help with SEO. I hope Chris will see that this is really a necessary change. Bob |
|
Posted
|
|
|
Community saint |
That results in trailing "-". But with a bit or order re-jigging, we get: PHP code
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
While the function test for uniqueness across all resource types, it does an insert without first checking if it can do an update for the specific resource_id. This might be a deliberate attempt to maintain historical links, and if it is I don't think it should. Old out-of-date links are better of 404ing.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
ocStaff (admin) |
@ lengthening. I am not opposed in principle but you have the benefit of looking from a very limited set of criteria. I can almost guarantee that if we change it things will break for people. For example, long URLs may make DB fields overflow, may break in email software that doesn't handle multi-line wordwrapping right, may force people on some Twitter clients to go through a URL shortener, may annoy people on screenreaders in some situations, and so on. If we do allow longer ones, it would have to be an option, but as there is no new release coming soon, it's not going to happen so I suggest considering making/commissioning an addon or working out how to manually change the code. @ temp1024 latest comment. It absolutely must not 404 if the links change. Imagine someone changing a title and suddenly a load of links being broken. ocPortal tracks this and does proper 301 redirects to the new URLs. It only goes through this function if it knows that the moniker is no longer ideal after an edit, which would be caused by editing the title, or in this case simply by the code changes resulting in better monikers. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Yea, I saw other white space related tweaks that could have been done, but restrained myself from looking too hard at it Can you please post the updated version. I was afraid that that might be the case. I know any time the length of something changes it can be dicey if its not thought out properly. OK, so its deliberate and I see your point. I suppose because I wasn't seeing any notifications about a change in URL, I thought that it could have been an oversight.
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
ocStaff (admin) |
If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Community saint |
Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
|
|
Posted
|
|
|
Community saint |
This is understandable but quite unfortunate. The added keywords in the URLs would be a significant benefit for SEO while to shorter ones might even see a slight penalty for what appears as very similar (possible duplicates) URLs. Bob |
1 guests and 0 members have just viewed this: None
Control functions:








Last edit: by