h-source-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [H-source-users] Fw: Bad IRI in XML exports


From: Luis Guzmam
Subject: Re: [H-source-users] Fw: Bad IRI in XML exports
Date: Sat, 15 Apr 2017 08:24:57 -0500

El sáb, 15-04-2017 a las 15:04 +0200, Laura Morales escribió:
> I think I've found the line in h-source [1].
> 
> Could somebody please add another line after this one? Something like
> this I guess

I can help submitting.
Have you test it?
> 
> $xml .= "\t\t<permalink>".$this-
> >baseUrl."/".Hardware::getControllerFromType($type)."/view/".$this-
> >lang."/".$row['hardware']['id_hard']."</permalink>\n";
> 
> This would be very handy. I'm not sure where the [tab] characters are
> coming from though.
> 
> Thank you.
> 
> --------
> [1] https://svn.savannah.gnu.org/viewvc/h-source/trunk/h-source/Appli
> cation/Controllers/DownloadController.php?revision=404&view=markup#l1
> 59
> 
> 
> 
> > 
> > Another observation: I suppose the last part of a URL (after the
> > item ID), is only there for SEO reasons. For example the URL
> > 
> > https://h-node.org/scanners/view/en/1320/Chic-Technology-Corp--Opti
> > cal-Wireless/1/1/undef/undef/undef/undef/compatibility/undef
> > 
> > points to the same page of
> > 
> > https://h-node.org/scanners/view/en/1320/[https://h-
> > node.org/scanners/view/en/1320/]

Wow!, we had this discussion so long ago i can't recall it clearly (i
don't believe we had mailing lists back there, did we?). In short,
indeed it was a SEO driven decision.

> > 
> > Therefore, would it be possible to use the second notation (the one
> > *without* the item title in the URL) as the value for the <link>
> > tags in the XML exported files? Or alternatively both, <link> for
> > the complete link with the item title, and <perma-link> with only
> > the item ID but no title?
> > 
> > Best regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]