jQuery: repair anchors link on web with BASE tag


/ Published in: jQuery
Save to your folder(s)

on using any wysiwyg editor (f.e. CKEditor) is inserted link to anchor on same page in this form: [a href="#anchor"]text[/a]

if on web site is used tag BASE, anchors links are wrong - on all page are on this url: www.domain.com/#anchor

this function repair this anchor link to correct url

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.