Skip to content

fix-missing-port-on-url - #917

Merged
eldadfux merged 2 commits into
appwrite:0.7.xfrom
lohanidamodar:fix-missing-port-on-url
Feb 19, 2021
Merged

eldadfux merged 2 commits into
appwrite:0.7.xfrom
lohanidamodar:fix-missing-port-on-url

Conversation

@lohanidamodar

@lohanidamodar lohanidamodar commented Feb 18, 2021 •

Copy link
Copy Markdown
Member

What does this PR do?

Adds missing port information in the console, Fixes storage images preview not working on different port.

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

Comment thread app/views/layouts/default.phtml Outdated
<meta property="og:url" content="<?php echo $canonical; ?>" />
<?php endif; ?>
<meta property="og:image" content="<?php echo $protocol; ?>://<?php echo $domain; ?>/images/logo.png?v=<?php echo APP_CACHE_BUSTER; ?>" />
<meta property="og:image" content="<?php echo $protocol; ?>://<?php echo $domain; ?><?php echo $port != 80 ?':'.$port : '' ?>/images/logo.png?v=<?php echo APP_CACHE_BUSTER; ?>" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use here $endpoint instead, anyway missing a check for port 443

@eldadfux eldadfux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 minor fix

@lohanidamodar

Copy link
Copy Markdown
Member Author

@eldadfux done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants