Awesome package. Just one thing in the editor if you create a link to umbraco page. if the target page is then unpublished or deleted then the link is written out as <a href="">some text</a> the broken link does not report it as broken. I have downloaded source code and just wanted to know where i need to change the code to test if we have href and if not report it as broken link.
I can now see the link in the report although I have had to blag the actual link because the links are grabbed from published page and for umbraco broken links we just have broken empty href so no way of actually knowing what it is.
However I am passing through in the made up url the page id that has broken links what i was thing was maybe updating the xslt that lists the broken links so that i get the page id then get the document and maybe loop through all properties that are rich text get links and from there determine the targets and write those out as part of the broken link report thus giving the end user information as to which page is deleted or unpublished.
Report no href as broken link
Darren,
Awesome package. Just one thing in the editor if you create a link to umbraco page. if the target page is then unpublished or deleted then the link is written out as <a href="">some text</a> the broken link does not report it as broken. I have downloaded source code and just wanted to know where i need to change the code to test if we have href and if not report it as broken link.
Many thanks.
Ismail
Hey Ismail,
Remind me to have a look at the beginning of next week - today is nuts!
Darren,
Took a quick look at the source and made some changes to the code namely in publishevent.cs:
I can now see the link in the report although I have had to blag the actual link because the links are grabbed from published page and for umbraco broken links we just have broken empty href so no way of actually knowing what it is.
However I am passing through in the made up url the page id that has broken links what i was thing was maybe updating the xslt that lists the broken links so that i get the page id then get the document and maybe loop through all properties that are rich text get links and from there determine the targets and write those out as part of the broken link report thus giving the end user information as to which page is deleted or unpublished.
Many thanks for the prompt reply.
Awesome package by the way love it voted up!
Regards
Ismail
is working on a reply...