Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stop Dreamweaver rewriting my code!

New Here ,
Aug 29, 2017 Aug 29, 2017

I noticed awhile back that Dreamweaver has started altering the tracking codes in my URLs.

Original version

?utm_medium=email&utm_source=source&utm_campaign=NAME

What Dreamweaver does

?utm_medium=email&utm_source=source&utm_campaign=NAME

This only happens after pasting it back into Dreamweaver from our marketing automation program. I tested it and the links are correct in the Marketing Automation program but wrong immediately after pasting into Dreamweaver.

I've unchecked Enable Linting.

I've turned off code rewriting & have Do not encode special characters in URL encoding checked.

Am I missing something else?

Can anyone help on this?

978
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 29, 2017 Aug 29, 2017

I can't reproduce it in my version of DW (CC 2017.0.1).  I pasted your code from forum into a PHP file and an HTML file.  No changes to code in either one.  Incidentally, I have code Linting turned on.

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Untitled Document</title>

</head>

<body>

<a href="mailto:?utm_medium=email&utm_source=source&utm_campaign=NAME">mailto link</a>

</body>

</html>

When DW tries to reconcile code errors, it's often because something else is throwing errors.  Have you validated your code?

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 30, 2017 Aug 30, 2017

I have. And I never have issues initially when I paste it in. The issues don't happen until I've edited in our marketing automation platform and then pasted back into Dreamwaver. When I paste all of the code back in it's changing the & in the URL tracking codes and adding the code for &

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 30, 2017 Aug 30, 2017

Could you try pasting the code in Notepad or similar program (no styling) and then copying and pasting the code into Dreamweaver?

I have a suspicion that there may be hidden characters involved.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 30, 2017 Aug 30, 2017

I've tried this a couple time with no luck

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 30, 2017 Aug 30, 2017

I have unmarked my answer as the correct one because you are still not getting the correct result.

It is hard to help with a solution when the problem cannot be replicated (by Nancy and I), hence my suggestion to try restoring the preferences as per Unusual behavior in Dreamweaver? Try restoring preferences.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2017 Aug 31, 2017
LATEST

Hi anealsjc,
Can you please to double check the "Do not encode special characters" in the URL encoding area of the preferences? As strange it can sounds you need to click it 2 times to activate it (because of the special character check box). At the end it should be marked in the blue color you will see in the screenshoot.

Screen Shot 2017-08-31 at 11.57.29.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines