给定以下模板(email.scala.html
)包含已编码的网址(斜线替换为%2F
)...
@(sender: String, subject: String)(content: Html)
<html>
<head>
<title>@subject</title>
</head>
<body>
...
<div class="footer">
<div class="align-left">
Trouble viewing this email? <a href="http://localhost:9000/viewInBrowser?email=eJy9WWl3okgX%2Fp5fUW2f7tN9jkZw...">View in browser</a>
</div>
</div>
...
</body>
</html>
...解析模板时,我总是得到以下网址:
http://localhost:9000/viewInBrowser?email=eJy9WWl3okgX/p5fUW2f7tN9jkZw...`
如您所见,网址已自动解码,%2F
替换为斜杠。
有可能阻止这种情况吗?