Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed route error #7621

Merged
merged 2 commits into from
Feb 17, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build-system/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,12 +460,12 @@ app.use('/min/', function(req, res) {
// Nest the response in an iframe.
// Example:
// http://localhost:8000/iframe/examples/ads.amp.max.html
app.get('/iframe/', function(req, res) {
app.get('/iframe/*', function(req, res) {
// Returns an html blob with an iframe pointing to the url after /iframe/.
res.send(`<!doctype html>
<html style="width:100%; height:100%;">
<body style="width:98%; height:98%;">
<iframe src="${req.url}" style="width:100%; height:100%;">
<iframe src="${req.url.substr(7)}" style="width:100%; height:100%;">
</iframe>
</body>
</html>`);
Expand Down